Safari window.getSelection()

Discussion in 'Javascript' started by John Allsopp, May 13, 2004.

  1. John Allsopp

    John Allsopp Guest

    Hi,

    having spent about half a day researching this, I have come to the
    conclusion that Safari window.getselection() only returns a text
    object. Can anyone confirm this?

    In which case, can anyone think of a solution to this. I would like to
    get the character offset at the start of the selection range. In
    Mozilla, this would be pretty straightforward. In Safari/Konqueror,
    has anyone got any suggestions?

    Thanks in advance,

    john
    John Allsopp, May 13, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andrew Crowe
    Replies:
    1
    Views:
    4,459
    Andrew Crowe
    Sep 13, 2004
  2. Jason Quinn

    possible to getSelection from AJAX sites?

    Jason Quinn, Apr 18, 2007, in forum: Javascript
    Replies:
    1
    Views:
    86
    Peter Michaux
    Apr 21, 2007
  3. riog
    Replies:
    1
    Views:
    218
  4. riog

    window.getSelection on a textbox

    riog, Oct 17, 2007, in forum: Javascript
    Replies:
    1
    Views:
    111
    Thomas 'PointedEars' Lahn
    Oct 17, 2007
  5. RobG
    Replies:
    2
    Views:
    375
    Dr J R Stockton
    Jul 16, 2011
Loading...

Share This Page