Link: Copying to clipboard and opening new page

Discussion in 'HTML & Website Design' started by ddzc, Oct 16, 2008.

  1. #1
    Hi all,

    I'm trying to achieve something similar to this site retailmenot.com

    If you click on one of the "codes" on the main page, this copies the code in your clipboard and opens a new webpage. Anyone know how to achieve this in html?

    Thanks
     
    ddzc, Oct 16, 2008 IP
  2. ddzc

    ddzc Peon

    Messages:
    487
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    anyone...?
     
    ddzc, Oct 22, 2008 IP
  3. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #3
    That's a behavioral function, and is done with javascript.

    cheers,

    gary
     
    kk5st, Oct 22, 2008 IP
  4. ddzc

    ddzc Peon

    Messages:
    487
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Is there any way I can integrate it in html? What code would I have to use? Thanks
     
    ddzc, Oct 23, 2008 IP
  5. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #5
    Look at the source in the example you linked.

    cheers,

    gary
     
    kk5st, Oct 23, 2008 IP
  6. ddzc

    ddzc Peon

    Messages:
    487
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hi,

    I took a look at the source. I can't seem to figure it out though. I'm not that good in programming. I believe the portion which i'm looking at is javascript...? I need to do this in wordpress (html)..what commands/script can I use to achieve the copy to clipboard and execute the link?

    Thanks much
     
    ddzc, Nov 5, 2008 IP