a.asp文件如下
<table WIDTH="778" border="0" CELLSPACING="0" CELLPADDING="0">
<tr>
<td width="778" height="74" ><iframe height="95" width="100%" name="head" src="home/head.asp" scrolling="no" frameborder="0" marginwidth="0" marginheight="0" noresize></iframe></td>
</tr>
<tr>
<td width="778" height="600" valign="top"><iframe width="100%" id="main" name="main" src="home/homemain.asp" scrolling="no" frameborder="0" marginwidth="0" marginheight="0"></iframe></td>
</tr>
<tr>
<td width="778"><iframe width="100%" name="bottom" src="home/bottom.asp" scrolling="no" frameborder="0" marginwidth="0" marginheight="0" noresize></iframe></td>
</tr></table>
其中有一登录页面包含在里面,登陆成功后,b.aspx页面载入a.asp文件中的iframe
name="main" 的对象中,b.aspx想通过脚本window.parent.document.getElementById(window.name)访问a.asp中的iframe对象.在a.asp网页上显示拒绝访问,为什么呀?
<table WIDTH="778" border="0" CELLSPACING="0" CELLPADDING="0">
<tr>
<td width="778" height="74" ><iframe height="95" width="100%" name="head" src="home/head.asp" scrolling="no" frameborder="0" marginwidth="0" marginheight="0" noresize></iframe></td>
</tr>
<tr>
<td width="778" height="600" valign="top"><iframe width="100%" id="main" name="main" src="home/homemain.asp" scrolling="no" frameborder="0" marginwidth="0" marginheight="0"></iframe></td>
</tr>
<tr>
<td width="778"><iframe width="100%" name="bottom" src="home/bottom.asp" scrolling="no" frameborder="0" marginwidth="0" marginheight="0" noresize></iframe></td>
</tr></table>
其中有一登录页面包含在里面,登陆成功后,b.aspx页面载入a.asp文件中的iframe
name="main" 的对象中,b.aspx想通过脚本window.parent.document.getElementById(window.name)访问a.asp中的iframe对象.在a.asp网页上显示拒绝访问,为什么呀?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货