This JavaScript code provides a great way for your visitors to close a window simply by clicking on a button. This is a great way to enable your visitors to close a tips window, instructions window or whatever you'd like.
1. Login to Blogger then Chose "Layout"
2. Click on "Add page element" (chose where you want to put it) then chose "HTML/Javascript"
3. Copy the code given below and put it in the "Configure HTML/JavaScrip" box.
4. Save Your Work and Refresh Your Blog For New Changes.
<script language="JavaScript"> function closeIt() { close(); } </script> <center> <form> <input value=" Close Window" onclick="closeIt()" type="button"/> </form> </center> |
0 comments on Close the browser with a button in your Blog :
Post a Comment and Don't Spam!
Thanks For Your Comment. You can also reach me at my mai Id :- blogtips.frd@gmail.com