Jump to content


Setting Focus on Last used control

  • Please log in to reply
1 reply to this topic

#1 harleydude

  • Members
  • PipPip
  • Member
  • 10 posts

Posted 31 August 2006 - 01:28 PM

I hope that this is an easy one for you all.

I have a list box that uses will refresh the screen as soon as a selection is selected. The page will refresh with the new data selected, but will loose focus. I would like to have this element retain focus after the data refresh event has finished.

Is there any way to do this? I have been looking but cannot find the correct process or methods.

Thank you in advance for your help on this.

Success = 1% inspiration + 99% persperation!
Support PHP Freaks! TODAY!

#2 onlyican

  • Members
  • PipPipPip
  • Advanced Member
  • 921 posts
  • LocationHants - UK

Posted 31 August 2006 - 04:31 PM

Look at something using tabindex

making tabindex='1' where you want the focus
Tell me the problem, I will try tell you the solution

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users