How to close the browser programaticaly without prompt in JavaScript?

Posted by Sheonarayan under Error and Solution on 1/29/2015 | Points: 10 | Views : 1627 | Status : [Administrator] | Replies : 0

To close the browser without prompt problematically, we can use below code snippet.

window.open('', '_self', ''); window.close();


Here, we are trying to open a empty page and then closing the parent window. That basically do nothing but close the current browser.

Trick!

Regards,
Sheo Narayan
http://www.dotnetfunda.com



Responses

(No response found.)

Login to post response