WinJS.Utilities.insertAdjacentHTML function
Calls insertAdjacentHTML on the specified element.
Syntax
WinJS.Utilities.insertAdjacentHTML(element, position, text);
Parameters
- element
-
Type: DOMElement
The element on which insertAdjacentHTML is to be called.
- position
-
Type: string
The position relative to the element at which to insert the HTML. Possible values are:
-
"beforebegin"
-
"afterbegin"
-
"beforeend"
-
"afterend"
-
- text
-
Type: string
The text to insert.
Return value
This function does not return a value.
Requirements
|
Minimum supported client | Windows 8 [Windows Store apps only] |
|---|---|
|
Minimum supported server | Windows Server 2012 [Windows Store apps only] |
|
Namespace |
WinJS.Utilities |
|
Library |
|
Build date: 12/5/2012
