How to make an auto copy text box?

Discussion in 'HTML & Website Design' started by xJd09, Feb 6, 2010.

  1. #1
    hello , im wanting to make a text box when u click it , it auto highlight and copy everythings thats in the box..

    and if its possible too , i want to know if theres also an option when u already clicked that box it changes background color example the box background is white but after clicking it it auto copy everything and background turns grey so people know that they clicked that box already ..

    if you can help me with code for it i would be really appreciated and thanks alot
     
    xJd09, Feb 6, 2010 IP
  2. krsix

    krsix Peon

    Messages:
    435
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    IIRC most new browsers refuse javascript access to the clipboard to prevent abuse
    Tinypic and several others that do autocopy on click use Flash typically.
     
    krsix, Feb 6, 2010 IP
  3. xJd09

    xJd09 Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    here's an example ,scroll down to see

    http://www.superpysz.com/
     
    xJd09, Feb 6, 2010 IP
  4. SpawnONE

    SpawnONE Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Here you can find how to perform a Cross Browser copy... http://code.google.com/p/zeroclipboard/
     
    SpawnONE, Feb 6, 2010 IP