JAVASCRIPT   121

global.js

Guest on 24th July 2021 08:30:46 PM

  1. <!--
  2. function close_win(){
  3.   var nvua = navigator.userAgent;
  4.         if(nvua.indexOf('MSIE') >= 0){
  5.           if(nvua.indexOf('MSIE 5.0') == -1) {
  6.                 top.opener = '';
  7.           }
  8.         }
  9.         else if(nvua.indexOf('Gecko') >= 0){
  10.           top.name = 'CLOSE_WINDOW';
  11.           wid = window.open('','CLOSE_WINDOW');
  12.         }
  13.         top.close();
  14. }
  15. -->

Raw Paste


Login or Register to edit or fork this paste. It's free.