|
Script Introduction
This script will ask the viewer to confirm whether or not he/she wants to follow a
link to another page.
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 link to appear.
-
Find the matching lines below in the script and change the text in red to
the text or web addresses you wish to use:
var where_to= confirm("Do you really want to go to this page??");
window.location="http://confirmedpage.com/";
window.location="http://www.changedmind.com/";
<a href="javascript:go_there()">New Page</a>
-
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.
Click the link to test the script.
New Page
|