Getting current active field |
Getting current active field |
denmarks |
Aug 12 2009, 12:15 PM
Post
#1
|
Advanced Member Group: Members Posts: 207 Joined: 17-January 08 Member No.: 4,734 |
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 |
Aug 12 2009, 12:19 PM
Post
#2
|
. Group: WDG Moderators Posts: 9,653 Joined: 10-August 06 Member No.: 7 |
Through a bookmarklet, and/or when the field is focused?
|
Lo-Fi Version | Time is now: 19th April 2024 - 01:34 PM |