一个frame中有一个TreeView,需要点击节点时在主框架中加载内容.
设置node.NavigateUrl="javascript:parent.main.location.href='url'";
在IE下可行,在其他浏览器下无效
设置为node.NavigateUrl = "javascript:parent.main.window.location='url'";
还有这种写法
node.NavigateUrl="javascript:location.href='url'";
这两种写法在Chrome下正常,但是在IE下都是错误,可能不能识别这种写法.请问这种该怎么写呢?