Adding the Pop-up Script
When the Script Should be Used
The pop-up script should be used when a link in the pages references
one of the following:
- External
link
- References outside of the site. Link opens new browser window.
- Story
page
- References a content page that must be easy to print (this page uses
the story template and popup script).
Link opens new browser window.
The links above use the Definition tags, which are recommended for easy
viewing, clicking, and describing links. Here's how the tags are used:
<dl>
<dt>External Link name</dt>
<dd>Description of the link and warning about pop up window.</dd>
<dt>Story page link name</dt>
<dd>Description of the story and warning about pop up window.</dd>
</dl>
Using the Script
- Open the page that contains the link needing the script.
- Find the word(s) that need the link and look at the source code.
- Add the following code to the beginning of the words:
<a href="LINK_GOES_HERE.htm" onClick="window.open('LINK_GOES_HERE.htm', '', 'resizable=yes,location=yes,toolbar=no,status=no,menubar=no,scrollbars=yes,width=640,height=480,top=0,left=300');return false;">
- At the end of the words add the closing tag:
</a>
- the href="" attribute and the onClick="window.open()
event need to have the same desired hyperlink address.
- The editable links are shown in bold above (LINK_GOES_HERE.htm).
- The position and size of the pop-up window can be altered by adjusting
the width, height, top, and left attributes found in bold at the end
of the script above.
- Save and close the file.
|