哪位朋友帮忙看一下。
JS如果取父窗口路径?
a.html<html>
<body>
<IFRAME src="http://127.0.0.1/b.html" frameBorder=0 width="100%" scrolling="no" height="25" ></IFRAME>
</body>在b.html文件里JS如何取到a.html的实际路径?
也就是说,b.html想知道到底是谁iframe它了。谢谢。
JS如果取父窗口路径?
a.html<html>
<body>
<IFRAME src="http://127.0.0.1/b.html" frameBorder=0 width="100%" scrolling="no" height="25" ></IFRAME>
</body>在b.html文件里JS如何取到a.html的实际路径?
也就是说,b.html想知道到底是谁iframe它了。谢谢。
window.perent 在b里面这样用表示a页面
路径等待高手
值是undefined这个版有专家吗?
window.parent.location.href
代码:
document.getElementById("urls").href="/user/login.asp?url="+window.parent.location.href;