Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WinJS.Utilities.setOuterHTMLUnsafe function

Applies to Windows and Windows Phone

Sets the outerHTML property of the specified element to the specified text in the context of MSApp.execUnsafeLocalFunction.

Note  Calling this function can lead to serious security concerns such as HTML and script injection issues. Whenever possible, use setOuterHTML.

Syntax


WinJS.Utilities.setOuterHTMLUnsafe(element, text);

Parameters

element

Type: DOMElement

The element on which the outerHTML property is to be set.

text

Type: string

The value to be set to the outerHTML property.

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]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.Utilities

Library

Winjs.js

 

 

Show:
© 2015 Microsoft