User Guide

392 Chapter 18: 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.
dom.getListTag()
Availability
Dreamweaver 3.
Description
Gets the style of the selected list.
Arguments
None.
Returns
A string that contains the tag that is associated with the list ("ul", "ol", or "dl") or an empty
string if no tag is associated with the list. This value always returns in lowercase letters.
000_DW_API_Print.book Page 392 Wednesday, August 20, 2003 9:14 AM