|
How do I close a pop-up window?
|
 |
To close pop up windows, insert the following code into your HTML:
(You must change everything in Red, everything in Orange is optional)
<form action="" method="post">
<input type="button" name="close" value="Close this Window" onClick="window.close()">
</form>
It will look like this
Or you can have the pop-up close after a pre- determined amount of time by inserting the following code into your HTML:
(You must change everything in Red, everything in Orange is optional)
Put this in the body tag of the page that appears in the pop up window:
<BODY onLoad="setTimeout(window.close, 5000)">
|