» Forums
» HTMLArea
» General discussion
» Problem with page scrolling
Problem with page scrolling
2006/02/22 05:16
Viewed 5674 times
Replies: 0/0

I have implemented a form with HTMLArea. The form has about 10 fields 2 of them being HTMLAreas. However when the form is finished loading the field focus is on the second HTMLArea field and the page is scrolled about 3/4 down the form.

What I would like is when the form is finished loading, I would like the form to be at the top with the focus on the first field. I have tried using tabindex on the fields - did not work. I have tried creating a javascript function to window.scroll(0,0) - did not work. I have tried a javascript function with form.fieldname.focus() - did not work.

I am in need of solutions/ideas/recommendations.

Thanks

Google