SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    May 2000
    Location
    Casablanca, Morocco
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    get the selection with javascript

    Hi everybody,

    Ok. Here it is. The user's selects some text in a textarea. I'd like, after he clicks a button, to do things with his selection (put it in a variable for example). I've read somewhere on the web about the GetSelection method (for ns) and selection.createRange (for ie) But i can't make neither the first nor the second work...!

    IT'S MAKING ME CRAZY!

  2. #2
    pg for mild peril cow's Avatar
    Join Date
    Mar 2000
    Location
    nevada, usa
    Posts
    636
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    "There's no justice like angry mob justice!" --Seymour Skinner

  3. #3
    ********* obeah makeda's Avatar
    Join Date
    Jun 2001
    Location
    rollin' on dubs
    Posts
    492
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no way!!! i had no idea you could do that! thanks for the link.


Bookmarks

Posting Permissions

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