javascript - How to close the window on the latest version of Mozilla Firefox? -
i using mozilla firefox 30.0 , seems doesn't support window.close()
anymore.
you may refer on image below or if small you, here link.
i opened website of google using window.open
, tried close using window.close()
says undefined
.
is there other option can using close window using javascript on firefox?
the firebug console unfortunately not display warning goes along it, reads (in regular firefox web console}:
scripts may not close windows not opened script.
also mdn window.close
states:
this method allowed called windows opened script using window.open method.
so, aren't allowed call window.close()
on windows explicitly opened user.
ps: isn't new behavior, around ages (even before firefox called firefox).
ps: give example, allowed this, only, i.e. close window returned window.open
:
var w = window.open("http://google.com"); settimeout(function() { w.close(); }, 1000);
Comments
Post a Comment