文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>JS小技巧

JS小技巧

时间:2011-03-23  来源:haiq

  1. 无提示地直接关闭浏览器窗口
    • IE6下
          window.opener = null;//如果缺少此行,close 会导致IE弹出关闭提示;
          window.close();
    • IE7下
          window.open('', '_self');//如果缺少此行,close 会导致IE弹出关闭提示;
          window.close();
    • 框架内(IE6、IE7s)
          window.parent.opener = null;
          window.parent.open('', '_self');
          window.parent.close();
    • 通用
          window.top.opener = null;
          window.top.open('', '_self');
          window.top.close();
  2. 
相关阅读 更多 +
排行榜 更多 +
宝宝欢乐农场

宝宝欢乐农场

休闲益智 下载
我的世界外进神器

我的世界外进神器

游戏工具 下载
飞虎队模拟器2

飞虎队模拟器2

飞行射击 下载