Click here to Skip to main content
15,040,743 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to close firefox(mozila) browser window or tab using javascript....
Posted
Comments
Zoltán Zörgő 23-May-13 9:44am
   
Repost! http://www.codeproject.com/Questions/597258/howplustoplusclosepluscurrentplusbrowserpluswindow
Volynsky Alex 23-May-13 16:17pm
   
<script type="text/javascript">
function myFunc(){
window.close();
}
</script>
....

<body>
<div onclick="myFunc();">let's close window</div>
</body>

1 solution

Hi,
Please try the code for close the current window..

JavaScript
window.close();
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900