Displaying a Message on Mouse Click

You can display a message when site visitors click an image or text link. One way to do this is by creating a Blank link and inserting an onClick JavaScript in the link’s opening <A HREF> tag.

Note:
You cannot add or edit HTML for links in HTML Source view. You can only do this in the Link HTML dialog.

  1. In Page view, select the image or exact text site visitors are to click, and click the Link button on the Properties palette.

The Link dialog appears.

  1. Select Smart Link from the Link type drop-down list and select Blank in the Name column.

  2. Click the HTML button in the Link dialog.

The Link HTML dialog appears.

  1. Click the Inside Link tab and type:

onClick="alert('your message')"

where your message is the text of your message.

  1. Click OK in the Link HTML dialog, then click Link in the Link dialog.

Preview the page and click the image or text to see the message.

View the HTML source in HTML Source view to see the resulting HTML.

Another way to add this JavaScript to a picture or text link is to create a custom link. In the Link dialog, select External Link as the Link type, choose javascript from the New link drop-down list, and type the onClick script in the New link field.