User Guide

General editing functions 399
Returns
Nothing.
dom.setLinkHref()
Availability
Dreamweaver 3.
Description
Makes the selection a hypertext link or changes the URL value of the HREF tag that encloses the
current selection.
Arguments
linkHREF
The linkHREF argument is the URL (document-relative path, root-relative path, or absolute
URL) comprising the link. If this argument is omitted, the Select HTML File dialog
box appears.
Returns
Nothing.
Enabler
dom.canSetLinkHref()” on page 439.
dom.setLinkTarget()
Availability
Dreamweaver 3.
Description
Sets the target of the link that surrounds the current selection. This function is equivalent to
looping through the parents and grandparents of the current node until a link is found and then
calling the
setAttribute('TARGET') function on the link.
Arguments
{linkTarget}
The linkTarget argument, which is optional, is a string that represents a frame name,
window name, or one of the reserved targets (
"_self", "_parent", "_top", or "_blank"). If
the argument is omitted, the Set Target dialog box appears.
Returns
Nothing.
000_DW_API_Print.book Page 399 Wednesday, August 20, 2003 9:14 AM