User Guide
504 Code
dom.getLinkHref()
Availability
Dreamweaver 3.
Description
Gets 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
getAttribute('HREF') on the link.
Arguments
None.
Returns
A string that contains the name of the linked file, which is expressed as a file:// URL.
dom.getLinkTarget()
Availability
Dreamweaver 3.
Description
Gets 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
getAttribute('TARGET') function on the link.
Arguments
None.
Returns
A string that contains the value of the TARGET attribute for the link or an empty string if no
target is specified.
000_DW_API_Print.book Page 504 Wednesday, July 20, 2005 11:58 AM