SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru Angry Coder's Avatar
    Join Date
    May 2002
    Location
    Canada
    Posts
    599
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question How can I "copy" some text with "execCommand"?

    Hello,

    I want to let the user click on a normal text, not a botton, to copy a specfied text to clipboard. What's the best way to do that?

    I saw this tutorial:-

    http://www.htmlgoodies.com/beyond/clipboard.html

    But it's so stupid, why should I use a textarea and hide text extra if I don't even need them!

    I want the code to be compatible with all browsers if possible.

    Thank you...
    Why It Doesn't Work?!

  2. #2
    SitePoint Guru Angry Coder's Avatar
    Join Date
    May 2002
    Location
    Canada
    Posts
    599
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My question is really hard?!
    Why It Doesn't Work?!

  3. #3
    SitePoint Guru Angry Coder's Avatar
    Join Date
    May 2002
    Location
    Canada
    Posts
    599
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The hardest question ever asked in SPF
    Last edited by Angry Coder; Jan 16, 2006 at 18:07.
    Why It Doesn't Work?!


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
  •