Editor Arrow Download Open
<!DOCTYPE html> <html> <head> <title>jQuery offset() method</title> <script src="jquery-latest.min.js"></script> <script> $(document).ready(function() { $("button").click(function(){ Page = $("p.param").offset(); $("span").text("Left offset: " + Page.left + " Top offset: " + Page.top); }); }); </script> </head> <body> <p class="param">First paragraph star here</p> <button>Click here to call offset() method</button> <p><span></span></p> </body> </html>
  Preview Arrow