If you scroll down, you will see that I provided an example that does work in Firefox 37 too. There is almost always a workaround. Join them; it only takes a minute: Sign up window.close(), self.close() not working on mozilla firefox up vote 13 down vote favorite 4 I want to close window on logout. There currently is no equivalent setting for Chrome. http://qrwsoftware.com/not-working/window-scroll-not-working-in-chrome.html
LikeLike Reply Jeff Clayton says: December 18, 2015 at 2:17 pm It appears that to have it work in Chrome, the browser has to have opened it as a separate window It looked like open(location, '_self').close();` moved forward a little bit, but it can't complete in my case. LikeLike Reply Leave a Reply Cancel reply Enter your comment here... Comment 7 by [email protected], Sep 19 2009 Processing The WebKit algorithm for when a window can be closed by script does not match the HTML5 spec.
When I change your example to window.close() it works in chrome 37. –George Oct 11 '14 at 11:14 1 GµarÐïañ What @George said is NOT moot (unless I've totally misunderstood LikeLike Hani says: December 15, 2015 at 10:40 pm This codes does not work when the page is loaded through another page. Thank you for your sharing this informative blog. Would you like to answer one of these unanswered questions instead?
What is the best way to save values (like strings) for later use? But this needs a fix from the Google Team. funny me ! Window.close Not Working In Chrome And Firefox See this thread. –zanetu Aug 27 '15 at 20:59 | show 12 more comments up vote 18 down vote Chrome Fixed the security issues on version 36.0.1985.125 Chrome 36.0.1985.125 WEDNESDAY, JULY
LikeLike Reply Hani says: December 18, 2015 at 7:07 am Hi Jeff; well this code works in IE & Edge but not with chrome where it fails silently P1.html ___________________________________ function Window.close Not Working In Ie11 Join them; it only takes a minute: Sign up self.close() not working with chrome and firefox up vote 0 down vote favorite My Code:--->