Following steps are required to find out the coordinates on a page:
Step1: Download the file from the location
http://code.jquery.com/jquery-1.6.3.min.js
Step2: Write the script under the script tag of the aspx page
script type="text/javascript">
$(document).ready(function () {
$('html').click(function (e)
{
var xpos = e.pageX;
var ypos = e.pageY;
alert('x=' + xpos + ',y=' + ypos);
});
});
Step 3: Run the application and when you click somewhere on your browser window the X and Y coordinates shows in an alert window.
0 Comment(s)