Home » , » Close a window with a button

Close a window with a button

If you're looking for a JavaScript code that will enable you to close a window with a button, this JavaScript code may be your answer.

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.

In addition to using this code within your web pages, you can also use it within your HTML ebooks, as long as your software supports JavaScript.
Place this code within your HTML code where you would like the button to appear:
<form method="post">
<input type="button" value="Close Window"
onclick="window.close()">
</form>
Share this article :

0 comments:

Post a Comment

 
Copyright © Online Business - All Rights Reserved
Proudly powered by Blogger