London SEO
London SEO

24
Oct

How to close a window in Firefox (javascript)

The close() won’t always work in Firefox - FF will only close a window with close() if a script opened the window.

So you have to pretend it did… ;)

Use:

<a xhref="javascript:window.open('','_parent','');window.close();">Close Window</a>

Privacy Policy Terms and conditions of use of this site