侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

关闭浏览器窗口的 javascript 代码

2024-05-07 星期二 / 0 评论 / 0 点赞 / 51 阅读 / 1338 字

序号 关闭代码 需要确认 无任何作用 无需确认 1 window.close() IE7 firefox,chrome, safari

序号 关闭代码 需要确认 无任何作用 无需确认
1 window.close() IE7 firefox,chrome,
safari
Opera
2 window.opener=null;
window.open('','_self');
window.close();
  firefox IE7,Opera,
chrome,safari
3 window.open('','_self');
window.close();
  firefox IE7,Opera,
chrome,safari
4 window.opener=null;
window.close();
IE7 firefox,safari chrome,Opera
5 var opened=window.open('about:blank','_self');
opened.opener=null;
opened.close();
  firefox safari,IE7,
chrome,Opera
6 var opened=window.open('about:blank','_self');
opened.close();
  safari,firefox firefox,IE7,
chrome,Opera

广告 广告

评论区