general account banner development uploading tech support

How do I close a pop-up window? More Questions Like This

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)">

Join FortuneCity FortuneCity.com
  • Take a JavaScript      Classes

    Easy JavaScripts:
  • Pop-Up Windows
  • Roll-Overs
  • Drop Down Box
  • Scrolling
  • Browser Detect
  • Date & Time
  • Countdown
  • Login to your FortuneCity Account