Use the following code instead of “window.close();”
function winClose(){ window.top.opener = null; window.close(); }
or
function closeWindow() { window.open(”,’_parent’,”); window.close(); }
If it doesn’t works
Please set your firefox browser:
1.input “about:config ” to your firefox address bar and enter;
2.make sure your “dom.allow_scripts_to_close_windows” is true
function winClose(){ window.top.opener = null; window.close(); }
or
function closeWindow() { window.open(”,’_parent’,”); window.close(); }
If it doesn’t works
Please set your firefox browser:
1.input “about:config ” to your firefox address bar and enter;
2.make sure your “dom.allow_scripts_to_close_windows” is true
No comments:
Post a Comment