JAVASCRIPT下判断IE与FF的比较简单的方式
但是过程相对复杂一点,当我们只需要一个简单的判断方式时,可以这样做: 实现代码如下: if (document.all){ //IE window.dialogArguments.location.reload(); }else{ //FIREFOX opener.location.reload()
但是过程相对复杂一点,当我们只需要一个简单的判断方式时,可以这样做: 实现代码如下: if (document.all){ //IE window.dialogArguments.location.reload(); }else{ //FIREFOX opener.location.reload()
从页面a.html到页面b.html a.html 实现代码如下: a function callBack(){ alert("Come back !"); } 去b页面 b.html 实现代码如下: b function goB(){ window.opener.callBack
关闭窗口时保存数据的办法 function IfWindowClosed() { var win = null; try { window.opener.name = "ss"; if ( window.opener.name != "ss" )
通过javascript 实现index.html下载文件#######temp.html//被下载文件if (typeof(window.opener) != 'undefined')//判断 打开方式的下载。 去掉会一打开文件就弹出下载框{document.execCommand('SaveAs
1、无提示关闭窗口 2、防止被人iframe if (top.location != self.location) {top.location.href="http://www.34do.net"; } 3、判断一个对象存在不存在 document.all("a")==null(不存在) 4、弹出
看下这个弹出窗口中写的函数或许你就明白了: 实现代码如下:function goIt(obj_id,obj_name){window.opener.document.forms["myForm"].elements["form_plant_shu"].value = obj_name;window.