Windows-Apps
Inhaltsverzeichnis reduzieren
Inhaltsverzeichnis erweitern
EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

WinJS.Utilities.setInnerHTMLUnsafe function

Applies to Windows and Windows Phone

Sets the innerHTML property of the specified element to the specified text.

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

Syntax


WinJS.Utilities.setInnerHTMLUnsafe(element, text);

Parameters

element

Type: DOMElement

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

text

Type: string

The value to be set to the innerHTML property.

Return value

This function does not return a value.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Utilities

 

 

Anzeigen:
© 2017 Microsoft