解决方案 »
- ie8 window.open报未指明的错误
- js批量按位读取身份证号,再按位制表输出,却无显示,救助,谢谢!!!~~~
- EXT问题 得到record后怎么插入到store內?
- javascript 正则表达式
- 高分求解!!!!
- 请教JAVASCRIPT验证单选框的问题
- 如何让 页面 的大小和 TABLE 的大小一样
- 在线急待!如何实现点击图片实现在几个页面中跳转!
- jsp页面从数据库读出的字段内容(包含回车键)赋给javascript变量时
- 我想让表单中的“用户名”栏只能填入字母和数字和下划线,请问怎样写代码?
- 关于jmodal 对话框如何获取元素值
- js实现的图片轮换,可是给图片加链接后,只有第一个链接有用
window.alert=function(){confirm(2)};
</script>
<input name="a" type="button" onclick="alert(1);">
frames['iframe1'].window.alert=function(){return false;}
后,子窗口iframe1中的alert将失败,在ie8,ff3.5下均可父窗口:a.htm<SCRIPT LANGUAGE="JavaScript">
<!--
function clearAlert(){
frames['iframe1'].window.alert=function(){return false;}
}
//-->
</SCRIPT>
<iframe src="b.htm" name="iframe1" width="400" height="400" id="iframe1"></iframe>
<input type="button" value="clearChildAlert" onclick="clearAlert()"/>子窗口 b.htm
<input type="button" onclick="alert('bbbbbbb');"/>在未点击a.htm中的clearChildAlert按钮时,b.htm中的button可以正常弹出alert,否则点击b.htm中button将无任何反应.
1.html
<frameset rows="73,*" style="border: 1px black;" noresize="noresize">
<frame name="surfmainframe" src="test.html" marginheight="0" marginwidth="0" noresize="noresize">
<frame name="surftopframe" src="test.html" scrolling=no marginheight="2" marginwidth="2" noresize="noresize" >
</frameset>test.html
11111111111111111111111111
<script language="javascript">window.onbeforeunload = function() {
return 'zzzzzzzzz';
}
</script>firefox就可以组织弹出,ie8就不行
而firefox则一直能覆盖?