innerHtml

This property sets or retrieves the HTML between the start and end tags of the specified element.

Syntax

function get xweb.document.htmlElement.innerHtml() : String

function set xweb.document.htmlElement.innerHtml(value : String)

Parameters

value   When used with set, the string to write between the start and end tags of the specified element. If there is existing text between the start and end tags, this operation will replace that text with the contents of the value string.

If the value string contains HTML tags, the string is parsed and formatted when it is added to the document.

Note

Changes written to the document using innerHtml cause the DOM to be refreshed.

Returns

When used with get, this property returns the string contained within the start and end tags of the specified element.

See Also

Concepts

htmlElement
htmlElement Members
xweb

  Copyright © 2011 by Microsoft Corporation. All rights reserved.