How can I close a window using Javascript in google Chrome (v38 and above) /firefox (v33 and above)? -


following options doesn't work - 1) window.close(); 2) window.open('','_self','');window.close();

window.close() should work if window opened parent window. if trying open window directly desktop , run window.close(), not close window.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -