Help - Search - Members - Calendar
Full Version: Getting current active field
HTMLHelp Forums > Programming > Client-side Scripting
denmarks
I have a bookmarklet that gets the value of the field named "answer" and then adds text to the end as follows:
document.getElementsByName('answer')[0].value+='added text'

Is there a way to modify the value of the field that the cursor is in without coding the field name?
Christian J
Through a bookmarklet, and/or when the field is focused?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.