Posted on: 8/25/2014 12:34:38 PM | Views : 445

hi,
i want a syntax in jquery that when i click on page its show page x y cordinates. i did that in image.but iwant in page that when i click on page.page x,y cordinates show.
this is my jquery coding.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script> $(document).ready(function () { $('img').click(function (e) { var offset = $(this).offset(); var X = (e.pageX - offset.left); var Y = (e.pageY - offset.top); $('#coord').text('X: ' + X + ', Y: ' + Y); }); }); </script> and this is my html coding
<div style="width:300px;font:15px Arial;"> <div><img src="glas ...

Go to the complete details ...