Get position : position « jQuery « JavaScript Tutorial






<html>
  <head>
    <script type="text/javascript" src="js/jquery-1.3.2.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){
            $("*", document.body).click(function (e) {
                  var position= $(this).position();
                  e.stopPropagation();
                  alert(position.left);
                  alert(position.top);
           });


        });
    </script>
  </head>
  <body>
    <body>
      
       <b>Hello asdf asdf</b>
    </body>
</html>








30.78.position
30.78.1.Get position