Pop Under Window Generator

Create your pop under window javascript code with this code snippet generator.

The form below requires that you enter:

  1. the HTML for what you want to appear within the body of the pop under window (if you don't know HTML then you can place paragraphs of text into the pop under by placing <p> before the start of each paragraph and </p> after the end of each paragraph),
  2. the top, left position of where the window is to appear on the screen,
  3. the width and height that you want the pop under window to have,
  4. the color that you want to display behind your content,
  5. whether to generate a close link in the window,
  6. and the text or HTML for the image that you want to use as the link for the popup window.

When you select the Create Pop Under button the necessary JavaScript for the pop under window and the link that will activate the window will then be created and displayed in the JavaScript Code and Popup Link text areas respectively.

Next you simply copy the JavaScript Code and paste it into a new file (you can call it whatever you want as long as it ends with .js eg. popunder.js). You then attach this script into the head section of your page using the following code (substitute your filename for popunder.js):

<script type="text/javascript" src="popunder.js"></script>

The next step is to copy the HTML for the link and paste it as code into the body section of your web page where you want it to appear.

Note that if you generate multiple pop under windows using this generator then the JavaScript for each must be saved in a separate file and the links need to be placed on separate pages.

Enter the required information into this form to create your popup window.

HTML for Pop Under Window Content:
     Top:
     Left:


 Width:
Height:


Window Color:



Pop Under



Close: no

add close link



Link Text:





JavaScript Code

Pop Under Link