General editing functions
391
dom.getCharSet()
Availability
Dreamweaver 4.
Description
Returns the
charset
attribute in the meta tag of the document.
Arguments
None.
Returns
The encoding identity of the document. For example, for a Latin1 document, the function
returns
iso-8859-1
.
dom.getFontMarkup()
Availability
Dreamweaver 3.
Description
Gets the value of the specified attribute of the
FONT
tag for the current selection.
Arguments
attribute
•
The
attribute
argument must be
"face"
,
"size"
, or
"color"
.
Returns
A string that contains the value of the specified attribute or an empty string if the attribute is
not set.
dom.getLineFromOffset()
Availability
Dreamweaver MX.
Description
Finds the line number of a specific character offset in the text (the HTML or JavaScript code) of
the file.
Arguments
offset
•
The
offset
argument is an integer that represents the character location from the beginning
of the file.
Returns
An integer that represents the line number in the document.
000_DW_API_Print.book Page 391 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...