Prevents any enclosed text or HTML source code from being parsed and displayed in the browser window.
Members Table
The following table lists the members exposed by the
HTML Comment
object.
Show:
|
Property | Description |
---|
innerHTML |
Sets or retrieves the HTML between the start and end tags of the object. | outerHTML |
Sets or retrieves the object and its content in HTML. | tagName |
Retrieves the tag name of the object. | text |
Retrieves or sets the text of the object as a string. |
Event | Description |
---|
onlayoutcomplete |
Fires when the print or print preview layout process finishes filling the current LayoutRect object with content from the source document. |
|
Remarks
Comments can contain other HTML elements. Comments do not nest.
Start and end tags are required.
Example
The following is an example of an HTML Comment.
<!-- This text will not appear in the browser window. -->
Standards Information
This object is defined in
HTML 3.2 .
See Also
comment