Windows Dev Center

EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

WinJS.Utilities.setInnerHTML function

Applies to Windows and Windows Phone

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

Syntax


WinJS.Utilities.setInnerHTML(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 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

 

 

Afficher:
© 2015 Microsoft