Pop-up Script To Open A Window When Your Page Loads. Place the following script between the and tags: And add the following code into your tag: onLoad="popup('URL/to/popup.html')" Your tag should then look something like this: Note: In this and all script examples that follow, change the attributes "toolbar", "statusbar", etc., to on (1) or off (0) as you prefer (or omit them), and set the width and height to the size you require. Second On Entry Pop-up Script Example Place the following script between the and tags: Add the following code into your tag: onLoad="popup()" Your tag should then look something like this: Third On Entry Pop-up Script Example Place the following script between the and tags: Add the following code into your tag: onLoad="popup()" Your tag should then look something like this: Delayed On Entry Pop-up Script Example Place the following script between the and tags: Add the following code into your tag: onLoad="TimedPop()" Your tag should then look something like this: Code to Close Pop-up After A Certain Time. Add the following code to your pop-up script, and adjust the time (in seconds) to your requirements: setTimeout ('self.close' ()', 1200); Code to Open Your Pop-up With A Link. Place the following code where you want the link to appear: Click here for pop-up Code to Open Your Pop-up With A Button. Place the following code where you want the button to appear:
Code to Create A "Close Window" Button. Place the following code where you want the buton to appear: