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()'>
source
share