javascript - How to close browser tab -


i not able close current browser tab using javascript.

i tried-

    window.close(); //1      window.open("", '_self');//2     settimeout(function(){         window.close();     },100);      window.open('','_parent',''); //3     window.close();      window.top.opener=null; //4     window.close(); 

nothing working me in chrome

window.close method allowed called windows opened script using window.open method.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -