Jump to content


Photo

setting focus on page load


  • Please log in to reply
2 replies to this topic

#1 sachin871

sachin871
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 18 August 2006 - 06:28 AM

hi!

I am newbie in javascript and just started using it. I am facing a problem setting focus to some element when my page loads. How can i dop this??

Thx in advance!!



#2 448191

448191
  • Staff Alumni
  • Advanced Member
  • 3,545 posts
  • LocationNetherlands

Posted 18 August 2006 - 06:43 AM

<body onload="document.formname.fieldname.focus()" >

#3 sachin871

sachin871
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 18 August 2006 - 07:18 AM

Thx for the reply!





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users