Create an e-mail link, Create an e-mail link using the property inspector, Auto-populate the subject line of an e-mail – Adobe Dreamweaver CC 2015 User Manual
Page 347: Create null and script links, Create a null link
340
Linking and navigation
Last updated 6/3/2015
• Shift-drag in the Document window from the selected text or image to the anchor you want to link to: either an
anchor within the same document or an anchor in another open document.
Create an e-mail link
An e-mail link opens a new blank message window (using the mail program associated with the user’s browser) when
clicked. In the e-mail message window, the To box is automatically updated with the address specified in the e-mail link.
Create an e-mail link using the Insert Email Link command
1
In the Document window’s Design view, position the insertion point where you want the e-mail link to appear, or
select the text or image you want to appear as the e-mail link.
2
Do one of the following to insert the link:
• Select Insert > Email Link.
• In the Common category of the Insert panel, click the Email Link button.
3
In the Text box, type or edit the body of the e-mail.
4
In the Email box, type the e-mail address, then click OK.
Create an e-mail link using the Property inspector
1
Select text or an image in the Document window’s Design view.
2
In the Link box of the Property inspector, type mailto: followed by an e-mail address.
Do not type any spaces between the colon and the e-mail address.
Auto-populate the subject line of an e-mail
1
Create an e-mail link using the Property inspector as outlined above.
2
In the Link box of the Property inspector, add ?subject= after the email, and type a subject after the equals sign. Do
not type any spaces between the question mark and the end of the e-mail address.
The complete entry would look as follows:
mailto:[email protected]?subject=Mail from Our Site
Create null and script links
A null link is an undesignated link. Use null links to attach behaviors to objects or text on a page. For instance, you can
attach a behavior to a null link so that it swaps an image or displays an absolutely-positioned element (AP element)
when the pointer moves over the link.
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, validate
forms, or do other processing tasks when a visitor clicks a specific item.
Create a null link
1
Select text, an image, or an object in the Document window’s Design view.
2
In the Property inspector, type javascript:; (the word javascript, followed by a colon, followed by a semicolon) in the
Link box.