forked from jquery/api.jquery.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathevent.pageY.xml
More file actions
23 lines (23 loc) · 768 Bytes
/
event.pageY.xml
File metadata and controls
23 lines (23 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0"?>
<entry type="property" name="event.pageY" return="Number">
<title>event.pageY</title>
<signature>
<added>1.0.4</added>
</signature>
<desc>The mouse position relative to the top edge of the document. </desc>
<longdesc> </longdesc>
<example>
<desc>Show the mouse position relative to the left and top edges of the document (within this iframe).</desc>
<css>body {background-color: #eef; }
div { padding: 20px; }
</css>
<html><![CDATA[<div id="log"></div>]]></html>
<code><![CDATA[
$(document).on('mousemove',function(e){
$("#log").text("e.pageX: " + e.pageX + ", e.pageY: " + e.pageY);
});
]]></code>
</example>
<category slug="events/event-object"/>
<category slug="version/1.0.4"/>
</entry>