iframe中使用parent提示无权限问题 可能是因为a.htm与b.htm不在同一个域。可以这样做:parent.location.href="c.htm";--->>>window.open("c.htm","_parent"); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 to:JK_10000(JK)你的意思是把parent.location.href="c.htm" 换成window.open("c.htm","_parent")吗?我替换了,可是提示:拒绝访问 b.htm刷新了吗?你把b.htm页面的代码贴出来看看吧 代码如下,想要处理的是dl这个函数<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- saved from url=(0014)about:internet --><html xmlns="http://www.w3.org/1999/xhtml"><head><title>top.gif</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><script>function dl(){ window.open("mymear/dl.htm"); }</script><link href="mer.css" rel="stylesheet" type="text/css" /><style type="text/css"><!--.STYLE5 { color: #FF9900; font-size: 13px;}--></style></head><body topmargin="0" leftmargin="0" bgcolor="#ffffff" ><table width="950" border="0" align="left" cellpadding="0" cellspacing="0"> <tr> <td height="93" colspan="11" > <table width="50%" border="0" align="right" cellpadding="0" cellspacing="0"> <tr> <td> <div align="right"> <span class="STYLE3 STYLE5"> <a href="javascript:dl()" class="STYLE5" >登陆</a></span></div> </td> </tr> </table> </td> </tr></table></body></html> 如何设置网页的宽度等于js中某个变量的值? 请问一个GOOGLE 搜索提示的问题 搜索提示后 将表重对应的其他值也赋上值 技术求救--想实现这样的弹层,如何做? 请问如何用js提交表单 如何点击iframe内网页button而关闭此iframe所在的div? 如何去掉字符串的最后一位 利用Jquery 在右侧固定一个层,不随滚动条移动,该层需要加载制定url的网页,该如何实现呢 请问怎样在状态栏显示网页的最后更新时间? javascript问题请教(在线等待,急急急!!!) 关于动态按钮(紧急求救) <span>标记中的内容应如何对齐 弄了个选择月份选择的小控件 ,转成js时候出现错误
你的意思是把parent.location.href="c.htm" 换成window.open("c.htm","_parent")吗?我替换了,可是提示:拒绝访问
你把b.htm页面的代码贴出来看看吧
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0014)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>top.gif</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script>
function dl(){
window.open("mymear/dl.htm");
}
</script>
<link href="mer.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.STYLE5 {
color: #FF9900;
font-size: 13px;
}
-->
</style>
</head>
<body topmargin="0" leftmargin="0" bgcolor="#ffffff" >
<table width="950" border="0" align="left" cellpadding="0" cellspacing="0"> <tr>
<td height="93" colspan="11" >
<table width="50%" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td>
<div align="right">
<span class="STYLE3 STYLE5">
<a href="javascript:dl()" class="STYLE5" >登陆</a></span></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>