Create your popup window javascript code snippet with this code snippet generator.
The form below requires that you enter:
When you select the Create Popup button the necessary JavaScript for the popup 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. popup.js). You then attach this script into the head section of your page using the following code (substitute your filename for popup.js):
<script type="text/javascript" src="popup.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 popup 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.