focus back on the button/text field

Discussion in 'JavaScript' started by kichus, Feb 8, 2006.

  1. #1
    hello friends

    i have a php page with a button ,which when clicked go to another page where function is executed and is redirected back to my source page.


    my problem, is my source page(from where i clicked the button) is rather a lengthy one,so when coming back to this page, i want focus on the line/button which i clicked.(otherwise for each button click i have to scroll down the page)


    is there a way to do this.

    please help
     
    kichus, Feb 8, 2006 IP
  2. exam

    exam Peon

    Messages:
    2,434
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Where you have the button, place an <a name="return_here"></a> tag then, when you return to the page, add a #return_here at the end of the url, and you'll automatically jump down to where the named anchor tag is.
     
    exam, Feb 9, 2006 IP
  3. kichus

    kichus Peon

    Messages:
    188
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks exam

    it worked
     
    kichus, Feb 9, 2006 IP