SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: copy to clipboard

  1. #1
    SitePoint Member
    Join Date
    Aug 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    copy to clipboard

    Is it possible to make a button that when clicked, copies text from a box.
    Instead of manually selecting the contents and then copying with something like control+c.
    I don't know if this is possible with html alone, could anyone help?

  2. #2
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,563
    Mentioned
    81 Post(s)
    Tagged
    3 Thread(s)
    Hi funfunfun,
    no not really in any cross browser way. IE will let you do something but FF wont give access to the clipboard.

    The best you can really get is to select all and then get the user to do the rest.
    That is if you want cross browser of course!

    Welcome to the forums
    Mike Swiffin - Community Team Leader

    Only a woman can read between the lines of a one word answer.....
    I started out with nothing... and still got most of it left!

  3. #3
    ¬.¬ shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,009
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by spikeZ View Post
    ...IE will let you do something...
    I believe with version 7, (might be with IE 6 after SP2 on XP) will popup a warning asking if you want the site to modify the clipboard.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


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
  •