How to set the Mouse position in javascript?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • swethak
    New Member
    • May 2008
    • 118

    #1

    How to set the Mouse position in javascript?

    Hi,


    I am using one button at the bottom of the page. When i click on that button the page refreshes and goes to the top of the page.But i want when i click on that button the page refreshes and mouse pointer goes to the bottom of the page where the button consists. i have found that it is possible in javascript through set the coordinates for mouse pointer.

    Anybody could you please tell the solution how can i resolve my problem.

    Thanks in Advance



    Thanks
    Swetha
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    I'm not aware of any method to set the mouse position through javascript ... imagine that a webpage would do that ... it could get control over your inputdevice and you wouldn't be able to do anything ... but you might retrieve the mouse's position. however you might use a scrolllTo() and/or the focus() method to scroll to a position and/or focus a node in the page.

    kind regards

    Comment

    • Dormilich
      Recognized Expert Expert
      • Aug 2008
      • 8694

      #3
      you could add an anchor to the URL to get down again.

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        ...or use scrollIntoView( ).

        Comment

        Working...