Partager via


WinJS.Utilities.getPosition function

Gets the position of the specified element.

Syntax

var object = WinJS.Utilities.getPosition(element);

Parameters

  • element
    Type: HTMLElement

    The element.

Return value

Type: Object

An object that contains the left, top, width and height properties of the element.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Utilities