Search DaTutorials:  
HOME
DHTML Reference
Introduction
Reference

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

object is defined in HTML 3.2 Non-Microsoft link.

See Also

comment

     Internet Advertising | Web Advertising | Online Advertising | Free Advertising | Web Advertising
Home    Link To Us    Ad With Us    Contact Us    Tell A Friend    Affiliates    Blog    Stock Photos