To create an e-mail link using the Property inspector:
Select text or an image in the Document window's Design view.
1
In the Link text box of the Property inspector, type mailto: followed by an e-mail address.
2
Do not type any spaces between the colon and the e-mail address. For example, type
mailto:jlydon@macromedia.com.
Related topics
•
"Linking to a specific place in a document" on page 324
•
"Linking to a specific place in a document" on page 324
Creating null and script links
The most familiar kinds of links are those to documents and named anchors (see
and documents" on page 320
there are other types of links as well.
A null link
is an undesignated link. Use null links to attach behaviors to objects or text on a page.
Once you have created a null link, you can attach a behavior to it to swap an image or to display a
layer when the pointer is moved over the link. For information about attaching behaviors to
objects, see
"Applying a behavior" on page
Script links
execute JavaScript code or call a JavaScript function and are useful for giving visitors
additional information about an item without leaving the current web page. Script links can also
be used to perform calculations, form validations, and other processing tasks when a visitor clicks
a specific item.
To create a null link:
Select text, an image, or an object in the Document window's Design view.
1
In the Property inspector, type javascript:; (the word javascript, followed by a colon, followed
2
by a semicolon) in the Link text box.
To create a script link:
Select text, an image, or an object in the Document window's Design view.
1
In the Link text box of the Property inspector, type javascript: followed by some JavaScript code
2
or a function call.
For example, typing javascript:alert('This link leads to the index') in the Link text box
produces a link that, when clicked, displays a JavaScript alert box with the message "This link
leads to the index".
Note: Because the JavaScript code appears in the HTML between double quotation marks (as
the value of the href attribute), you must use single quotation marks in the script code or "escape"
any double quotation marks by preceding them with a backslash (for example, \"This link
leads to the index\").
Related topics
•
"Linking to a specific place in a document" on page 324
•
"Creating an e-mail link" on page 325
326
Chapter 15: Linking and Navigation
and
"Linking to a specific place in a document" on page
373.
"Linking files
324), but
Need help?
Do you have a question about the DREAMWEAVER MX 2004-USING DREAMWEAVER and is the answer not in the manual?
Questions and answers