跨页面控制问题 页面A有一个按钮,我希望通过这个按钮控制页面B表单的显示/隐藏 。只控制页面B的表单不是整个页面的加载。请问如何控制! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 A B 是什么关系?iframe 还是 window open的? iframe 该如何呢? windows open该怎么样呢 <frameset cols="20%,*"><frame src="a.html" /><frame src="b.html" /></frameset>a.html<script type="text/javascript">function hides(){ var a=window.parent.frames[1]; a.document.getElementById("div").style.display="none";}</script></head><body><input type="button" onclick="hides()" value="hide"></body>b.html<body><div id="div">test</div></body>这样? <frameset rows="100,*,40" cols="*" frameborder="no" > <frame src="<%=request.getContextPath()%>/jsp/system/top.jsp" name="top" scrolling="no" noresize="noresize" id="topFrame" title="top" /> <frameset rows="*" cols="220,8,*" framespacing="0" frameborder="no" border="0" id="frameflag"> <frame src="<%=request.getContextPath()%>/jsp/system/left.jsp" name="leftFrame" id="leftFrame" title="left" /> <frame name="hider" src='<%=request.getContextPath()+"/jsp/system/dragflag.jsp" %>' scrolling="no" title="hider" noresize="noresize" /> <frame src="<%=request.getContextPath()%>/showBulletinAction.do" name="content" scrolling="auto" id="main" title="main" /> </frameset> <frame src="<%=request.getContextPath()%>/jsp/system/bottom.html" name="bottom" scrolling="no"></frameset> 看起来似乎是iframe,但是我页面的名字是trigList.jsp和trigQuery.jsp页面这两个页面都是通过点击左侧的连接打开的,位置应该是id=main这个位置 确实是iframe刷新子页面<IFRAME width="100%" onload="this.height=result.document.body.scrollHeight" marginHeight="0" marginWidth="0" scrolling="auto" frameBorder="0" id="iFrame" name="result"></IFRAME> jquery实现判断这是本月的第几周 表单能用enter键提交吗?怎么写?? Jquery ui报没有dialog方法 一个在html中简单的问题,急!!!!!!!!!!!!!!! 如何记录并显示访问当前页面的用户的ID号等信息? 求一个正则表达式,谢谢 脚本语言里的一个小问题 DHTML“创建线程”?这几天才发现在Mozilla firefox里的一个现象(setTimeout和alert) 如何把一个弹出窗口永远放到浏览器的最上层?急!急! 我要在页面中实现全屏幕,怎么实现?看看我的源代码。 传递函数的问题 为什么出现 is not a function?
windows open该怎么样呢
<frame src="a.html" />
<frame src="b.html" />
</frameset>a.html
<script type="text/javascript">
function hides(){
var a=window.parent.frames[1];
a.document.getElementById("div").style.display="none";
}
</script>
</head><body>
<input type="button" onclick="hides()" value="hide">
</body>
b.html
<body>
<div id="div">test</div>
</body>
这样?
<frame src="<%=request.getContextPath()%>/jsp/system/top.jsp" name="top" scrolling="no" noresize="noresize" id="topFrame" title="top" />
<frameset rows="*" cols="220,8,*" framespacing="0" frameborder="no" border="0" id="frameflag">
<frame src="<%=request.getContextPath()%>/jsp/system/left.jsp" name="leftFrame" id="leftFrame" title="left" />
<frame name="hider" src='<%=request.getContextPath()+"/jsp/system/dragflag.jsp" %>' scrolling="no" title="hider" noresize="noresize" />
<frame src="<%=request.getContextPath()%>/showBulletinAction.do" name="content" scrolling="auto" id="main" title="main" />
</frameset>
<frame src="<%=request.getContextPath()%>/jsp/system/bottom.html" name="bottom" scrolling="no">
</frameset> 看起来似乎是iframe,但是我页面的名字是trigList.jsp和trigQuery.jsp页面这两个页面都是通过点击左侧的连接打开的,位置应该是id=main这个位置
onload="this.height=result.document.body.scrollHeight" marginHeight="0"
marginWidth="0" scrolling="auto" frameBorder="0" id="iFrame"
name="result"></IFRAME>