Quote:
Originally posted by djr
Javascript: Focus on a form-field
This script makes the cursor start in a form-field when the page is loaded. Therefor it's handy to put this script behind the closed FORM TAG. You can also create a function and use it in the BODY OnLoad.
Replace 'formname' for the NAME of the FORM. And replace inputfieldname for the NAME of the INPUT-TAG.
Code:
document.formname.inputfieldname.focus();
|
I don't have that good of an understanding of this stuff yet. Can you please explain how I can get that line of code to work with a reply to somebodys post or when creating a new thread?
Now that I think about it, it would be useful on the PMs and PM replys. (both single users, and buddy list)
If somebody can help me out with this problem, that would be great.
Thanks.