
November 22nd, 2005, 08:53 PM
|
 |
Contributing User
|
|
Join Date: Apr 2007
Location: Scottsdale AZ, US
Posts: 2,253
Time spent in forums: 2 h 48 m 45 sec
Reputation Power: 4
|
|
|
javascript focus question
I've been trying to get a little javascript function going for matt to add to the forums that would allow tags to be automaticly populated in the form.
the link to that thread is here:
http://codewalkers.com/forum/index.php?action=displaythread&forum=sitesupport&id=423&realm=default
but the problem is simply why the focus() will set to the end of the text field if I have already been typing and add a tag but not if I add a tag as my first action.
you can see a test of this here:
www.azwc.com/cw/javascripttest3.html
My method to solve the focus on end of text was to count the length of the field and place that variable in the focus(cnt) parameters area though I was unable to find a reference online that showed me if this was a valid parameter of that method, it does seem to work.
|