调用js
string url = HtmlPage.Window.Eval("location.href").ToString(); location.href 所要调用的js
调用几个变量
//获取refferrervar refferrer = HtmlPage.Document.GetProperty("refferrer");
//获取浏览器宽高
var screenWidth = HtmlPage.Window.Eval("screen.width");
var screenHeight = HtmlPage.Window.Eval("screen.height");
//获取客户端时间
var datetiem = System.DateTime.Now;