Windows Dev Center

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 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

 

 

Show:
© 2015 Microsoft