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

WinJS.Utilities.insertAdjacentHTMLUnsafe function

Applies to Windows and Windows Phone

Calls insertAdjacentHTML on the specified element in the context of MSApp.execUnsafeLocalFunction.

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

Syntax


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

Value to be provided to insertAdjacentHTML.

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

Base.js

 

 

Afficher:
© 2014 Microsoft. Tous droits réservés.