All Tech Tips

HTML Comment Object

Prevents any enclosed text or HTML source code from being parsed and displayed in the browser window.

Members Table

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 .

See Also

comment


Copyright © 2006 alltechtips.com. All rights reserved.

This website and the materials and information you find on this website are provided "as is", without warranty of any kind, either express or implied, including without limitation any warranty for information, services, or products provided through or in connection with the service and any implied warranties of merchantability, fitness for a particular purpose, expectation of privacy or non-infringement.