Window.close () creates a problem

this code creates a problem [encountered a window problem] and closes all safari windows, but this code works fine with Internet Explorer. What should I do? There is any alternative method of closing the current open window in each browser.

<input type='button' value='close' onclick='window.close()'>
+3
source share
1 answer

Yes, that sounds pretty weird, this is not documented behavior.

Mozilla Gecko DOM Link: https://developer.mozilla.org/en/DOM/window.close

MSDN link: http://msdn.microsoft.com/en-us/library/ms536367(VS.85).aspx

Safari Domwindow.close () documentation - you will find, you are mistaken, nothing.

+1

Source: https://habr.com/ru/post/1747821/


All Articles