I need to be able to change the text of the currently selected input box using a bookmarket.
I can do this in Internet Explorer. Can you help figure out how to do it in FireFox?
Here is a test page explaining what's going on.
( http://yellowlamb.com/filltest/ )
If you can figure out the FireFox solution, reply to the post.
To work on the textbox, you may need to use setSelectionRange, and selectionStart, selectionEnd on the actual element.
To detect which element fired the event, try using the "onselect" event handler to detect when the user starts selecting text.
Last edited by Ultimater; 01-29-2006 at 08:40 AM.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)