Dreamweaver MX: Closing Pop Up Windows with Text Links
Objectives: To add the
Tools & Techniques: Behaviors,
Part 1: Closing a Pop Up Window with a Text Link
Generally, the "Close Window" link is at the bottom of the pop
up page but you're welcome to put it anywhere you like.
Type out the text on your page. In this case, I'll use: "Close
Select the text and in the Property inspector, add the following
That should do it. Go ahead and save your page and give it a try.
Part 2: Closing a Pop Up Window with an Image
Closing a window with an image is the same as with text links.
Just add the same script to the image as you did the text link
Select the image you want to use to close the window and add the
following line of code to your Property inspector: