SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Feel my RewiredMind KMxRetro's Avatar
    Join Date
    Jan 2001
    Location
    Exeter, Devon, UK
    Posts
    477
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Mozilla copy to clipboard?

    Hi all,
    I've managed to hack together a tool that copies a selected piece of text to the clipboard in IE. My problem is, I've switched to Mozilla and can't get it working!

    I have a function called copyto() that is called like this:-

    copyTo("Texttocopy");

    And in IE, low and behold "Texttocopy" is on the clipboard after clicking the link that calls the function. How would I do this in Mozilla? The text to be copied is always in the function call (put there by PHP) so there are no fancy document editing or rich text or textareas to use.

    Any ideas?

    Thanks,

  2. #2
    American't awestmoreland's Avatar
    Join Date
    Sep 2002
    Location
    Grand Rapids, MI
    Posts
    1,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Search this thread for "mozilla" and there's something which claims to do what you're after.

    Ooh! I must post that over here too.


    Andy
    From the English nation to a US location.


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
  •