Oct 23, 2007

Internet Explorer 7 window.Close() problem

while working with popups, window.close() becomes necessary.

trying to use this script on Internet Explorer 7, will cause to alert.


to avoid this alert just use:

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

No comments: