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
Summary of Contents for DREAMWEAVER MX 2004
Page 1: ...Dreamweaver API Reference...
Page 24: ...24 Contents...
Page 32: ......
Page 70: ...70 Chapter 5 Fireworks Integration...
Page 76: ...76 Chapter 6 Flash Integration...
Page 116: ...116 Chapter 9 The JavaBeans API...
Page 140: ......
Page 152: ...152 Chapter 11 Application...
Page 218: ...218 Chapter 12 Workspace...
Page 248: ...248 Chapter 13 Site...
Page 292: ...292 Chapter 14 Document...
Page 378: ...378 Chapter 17 Design...
Page 430: ...430 Chapter 18 Code...
Page 486: ...486 Index...