WinJS.Utilities.eventWithinElement function

Applies to Windows and Windows Phone

Determines whether the specified event occurred within the specified element.

Syntax


var boolean = WinJS.Utilities.eventWithinElement(element, event);

Parameters

element

Type: HTMLElement

The element.

event

Type: Event

The event.

Return value

Type: Boolean

true if the event occurred within the element; otherwise, false.

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

 

 

Show:
© 2014 Microsoft