获取地址栏中的URL地址
t.html内容如下
<iframe src="t.asp?id=32&flag=pop"></iframe>
t.asp内容如下
<%if request.querystring("")="pop" then%>
<style>
...
</style>
<script language="javascript" src="t.asp?id=32"></script>
<%else%>
//....
//在这里获取URL地址
alert(top.location);
<%end if%>
获取URL地址时,出错:拒绝访问或没有权限
请问这是什么意思?
要怎样才能取到地址栏里的URL地址呢?