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