Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Topics

Recent Status Updates

View All Updates

Photo
- - - - -

Auto Focus


  • This topic is locked This topic is locked
3 replies to this topic

#1 Ronin

Ronin

    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 302 posts

Posted 26 April 2007 - 06:43 AM

When the user loads the "Submit" page I want to auto-focus on a certain form input. How do I do this?
  • 0

#2 xtraze

xtraze

    CC Devotee

  • Just Joined
  • PipPipPipPipPipPip
  • 872 posts

Posted 27 April 2007 - 08:07 AM

I have seen this feature on Gmail.com page,
you can just snoop on it and get the magic code. that is what I do most of the times.

Good luck my friend.
  • 0

#3 Guest_NeedHelp_*

Guest_NeedHelp_*
  • Guest

Posted 27 April 2007 - 01:47 PM

Easy, just do:


document.yourForm.objectName.focus();

  • 0

#4 Ronin

Ronin

    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 302 posts

Posted 01 May 2007 - 03:52 AM

Nice, thanks! I wrote a function to do this in JavaScript, perfect.
  • 0




Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download