您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

脚本收藏iframe_javascript技巧

2025/4/1 9:36:37发布21次查看
1、无提示关闭窗口
2、防止被人iframe
if (top.location != self.location)
{
  top.location.href=http://www.34do.net;
}
3、判断一个对象存在不存在
document.all(a)==null(不存在)
4、弹出子窗口
window.open ('default.asp', 'newwindow', 'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')
5、打开模态窗口
window.showmodaldialog('default.asp',window,'help: no; resizable: no; status: no;scrollbars:no;center: yes;dialogwidth:width;dialogheight:height;')
6、弹出的子窗口刷新父窗口
window.parent.location.reload();
7、模态窗口刷新父窗口
window.parent.dialogarguments.document.execcommand('refresh');
8、一个js文件包含另外一个js文件
document.write('
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product