getPosition function

WinJS.Utilities.getPosition function

Applies to Windows and Windows Phone

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

 

 

Show:
© 2016 Microsoft