Jump to content

Archived

This topic is now archived and is closed to further replies.

sachin871

setting focus on page load

Recommended Posts

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!!

Share this post


Link to post
Share on other sites
<body onload="document.formname.fieldname.focus()" >

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.