Would you please suggest me the suitable code in jQuery to close the explorer window (internet Explorer, google chrome, firefox etc)? Currently I used some code like : window.close(), self.close(). While using this code, it worked in internet explorer only to close a single tab. It did not close the whole window if it contains multiple tabs. Also this did not work for chrome and firefox. So, Please share your experience regarding the issue.
Asked
Active
Viewed 70 times
0
-
2Do you not think that giving control of an entire browser to one tab is a huge security risk? I don't want to visit some site and have it able to close all my other tabs/windows! It is simply not possible. – andyb Mar 28 '13 at 09:07
-
1window.close is plain javascript. Nothing in jQuery will make it more cross browser. It is the browser itself that decides if it allows your script to close the window. – hs.chandra Mar 28 '13 at 09:08