www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
 HTML Comment Object
HTML Comment Object

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.

Attributes/Properties
Show:
PropertyDescription
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.
EventDescription
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 World Wide Web link.

See Also

comment
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG