js关闭当前页面

          function closeWin(){ 
          var browserName=navigator.appName; 
          if (browserName=="Netscape") { 
              var opened=window.open('about:blank','_self');
              opened.opener=null;
              opened.close();
          } else if(browserName=="Microsoft Internet Explorer") { 
              window.opener=null;
              window.open('','_self'); 
              window.close(); 
          }

 

你可能感兴趣的:(js)