|
Script Introduction
This script will open a new window when a viewer clicks on the button.
Cut and Paste Code: BODY Section
This code should be placed between the <body> and </body> tags.
Installation Instructions
-
Paste the BODY Section code from above between the <body> and </body> tags on your page,
exactly where you want the forward and back images to appear.
-
Find the matching lines below in the script and change the text in red to
the URLs and text you wish to use:
window.open('http://someplace.com/new_page.htm',
'mywindow','width=400,
height=200,toolbar=yes,
location=yes,directories=yes,
status=yes,menubar=yes,
scrollbars=yes,copyhistory=yes,
resizable=yes');
<input type="button" name="but1" id="but1" onClick="javascript:my_win()" value="New Window"></input>
-
Check the Format Window
to be sure you do not have one single line of code, or too many line breaks in the code.
Example
A working sample of the script is shown below.
|