You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Lars Hoss <wo...@mac.com> on 2004/07/20 21:45:19 UTC

How to disable auto-focus on form elements?

Hi all!

Is there any way to disable the auto-focus feature when using forms:

window.onload = function ()
{
document.Form1.inputName.focus();
document.Form1.inputName.select();
}

The thing is that my weblog has a comments page where the "add your 
comment" form is located at the end of the page, below the list of 
comments. This is somewhat nasty if the entry has many comments because 
the auto focus will jump to the end of the page and hide the new 
comments at the beginning of the page :-(

I have already looked through the component reference but couldn't find 
anything so far. Perhaps someone has a hint for me?

Yours,
Lars


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org