HTML and CSS Reference
In-Depth Information
JavaScript Element
Description
Comment
An HTML or XML comment within the document
Properties
data
The text of the comment
length
The number of characters in the comment
Methods
appendData( data )
Appends data to the comment text
deleteData( offset , count )
Deletes data from the comment starting at offset for count characters
insertData( offset , data )
Inserts data into the comment starting at offset
replaceData( offset , count , data )
Replaces characters in the comment with data starting at offset to count characters
substringData( offset , count )
Extracts a substring of characters starting with offset for count characters
Console
The built-in browser console used for debugging
Methods
assert( expression , message )
Displays the error message message if expression is false
count([ title ])
Displays title along with a count of the number of times this method has been called
debug( message )
Displays message as a text string
dir( object )
Displays the properties of object
dirxml( node )
Displays the XML or HTML markup of node
error( message )
Displays message marked as an error
group( message )
Display message as a collapsible group of debug messages
groupCollapsed( message )
Begins a new group of collapsed messages
groupEnd()
Ends the debugging group
info( message )
Displays message marked as information
log( format , message )
Displays message as a log message formatted as format
profile( title )
Starts the JavaScript profiler, displaying title at the start of the report
time( name )
Starts a timer named name
timeEnd( name )
Ends the timer named name
trace()
Displays a stack trace
warn( message )
Displays message marked as a warning
CSSRule
A rule in a CSS style sheet
Properties
cssText
The text of the CSS rule
parentRule
The rule in which this rule is contained
parentStyle sheet
The style sheet in which this rule is contained
selectorText
The selector text to which this style rule is applied
style
The styles that should be applied to the selector
type
The type of the style rule
CSSStyleDeclaration
A set of CSS properties and their values
Properties
cssText
The text of the style properties and their values
length
The number of style property-value pairs
CSSStylesheet
A CSS style sheet
Properties
cssRules
An array object containing CSSRule objects
Search WWH ::




Custom Search