# Browser closing issue with Mozilla!

**URL:** <https://forum.kirupa.com/t/browser-closing-issue-with-mozilla/302778>\
**Category:** Uncategorized\
**Created:** [January 7, 2010, 12:32pm UTC](https://forum.kirupa.com/t/browser-closing-issue-with-mozilla/302778 "2010-01-07T12:32:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajesh\_flash](https://avatars.discourse-cdn.com/v4/letter/r/d2c977/32.png) [@rajesh\_flash](https://forum.kirupa.com/u/rajesh_flash)\
**Post date:** [January 7, 2010, 12:32pm UTC](https://forum.kirupa.com/t/browser-closing-issue-with-mozilla/302778/1 "2010-01-07T12:32:20Z")

</div>

Hello Friends,

The below code is working perfectly in IE, but not working in Mozilla.  
I need a solution for this in mozilla.

any ideas/suggestions pls… i just want to close a browser onclicking of a button. this is my requirement…

\<html\>  
\<head\>  
\<title\>JavaScript Window Close Example \</title\>  
\</head\>  
\<body\>  
\<form\>  
\<input type=“button” value=“Close Window” onclick=“window.close()”\>  
\</form\>  
\</body\>  
\</html\>

Regards,  
Rajesh
