Set Focus

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nicolas
    New Member
    • Jan 2007
    • 24

    Set Focus

    how i going to set focus when it reload the page..???

    when i lose focus the particular textbox, it will reload the page.
    and i wish to get back the focus on the particular textbox again or next textbox after reload the page...

    izzit possible ..??
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    This will require javascript, e.g.
    [HTML]<body onload="documen t.getElementByI d('textbox1').f ocus()"[/HTML]
    or whatever your textbox's id is. You could also put the focus code in a function and call that instead.

    Comment

    Working...