SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot get_dave's Avatar
    Join Date
    Nov 2006
    Location
    England, UK
    Posts
    191
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Select text to copy - dilema!

    Hi guys,

    Can any of you help?

    I have a page which tells visitors what link text to use if they want to put up a link to our site. See http://www.bath-cottages.co.uk/link_to_us.html

    What I want to do is have a little button next to each block of code which says "copy". When you click this I want it to copy that particular block to the clipboard. Can javascript do this?

    Any help would be much appreciated.

    Many thanks,

    David Smith
    I'm looking for a link exchange.
    contact me or head to:
    http://www.aheadcreative.co.uk

  2. #2
    SitePoint Addict Mirek Komárek's Avatar
    Join Date
    Dec 2006
    Location
    Prague
    Posts
    210
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


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
  •