close window in firefox and internet explorer


/ Published in: JavaScript
Save to your folder(s)

just close() wont always do it in ff, so use this: (yeh cba to edit out escapes)


Copy this code and paste it in your HTML
  1. <a href=\"javascript:window.open('','_parent','');window.close();\">Close Window</a>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.