User Guide
General editing functions 513
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
See “dom.canSetLinkHref()” on page 561.
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 513 Wednesday, July 20, 2005 11:58 AM