Copy URL Button for Website

Discussion in 'HTML & Website Design' started by Webgold, Dec 16, 2009.

  1. #1
    Hi

    Does anyone know how can add a button to my site that you can click and it copies the web page address that they are viewing, So that people who like the page can click a button and copy the address and share it with others.

    So far I have:

    <script language="javascript" type="text/javascript">
    document.write (document.location.href);
    </script>

    which will retrieve the current web address?

    Can anyone help please! :)
     
    Webgold, Dec 16, 2009 IP
  2. combus

    combus Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you want to make it to automatically copy the URL to their clipboard, you'll have to use Flash for cross-browser and cross-plataform support. There is a very neat script which can do this for you, Zeroclipboard (just google it).
     
    combus, Dec 16, 2009 IP
  3. LeetPCUser

    LeetPCUser Peon

    Messages:
    711
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #3
    LeetPCUser, Dec 16, 2009 IP