Thursday, January 1, 2015

window.close() not working in Chrome and Mozilla

Hi,


Please try to use var win = window.open('', '_self'); win.close();



<a href="#" onclick="javascript:var win = window.open('', '_self');win.close();return false;">Close</a>

Here is a blog for your reference:


http://ift.tt/1vImB1h


Best Regards




Dennis Guo

TechNet Community Support



No comments:

Post a Comment