window.open的问题
密码测试 2013-08-21 05:05:33 我在ie上用url打开:http://localhost/parent.jsp页面
parent.jsp中用window.open打开一个child.jsp页面(http://localhost/child.jsp)
这时候child.jsp不是顶层窗口,因此 (top == self)的值是false;
然后我直接将http://localhost/child.jsp中的localhost修改为:127.0.0.1
也就是http://127.0.0.1/child.jsp,访问网页:发现:(top == self)的值是true;