Results 1 to 2 of 2

Thread: Help with FireFox Javascript in Bookmarklet

  1. #1
    Join Date
    Jan 2006

    Help with FireFox Javascript in Bookmarklet

    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.

  2. #2
    Join Date
    Jan 2005
    San Diego, CA
    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 09:40 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center