Hi I want to write such a javascript that when it hovers over a div (any div) it will automaticly COPY ( to clipboard ) the text within the div... Any ideas?? I am just stumped... Thanks in advance...
johnroach1985 0 Junior Poster
Recommended Answers
Jump to PostYou shouldn't be able to affect the clipboard. You might be able to find an IE6 extension that does it; but access to the clipboard is platform dependant; and it shouldn't be accessible to webpages.
I like to keep my own control of the clipboard, it would annoy me …
Jump to Postyou could have it so they must highlight in order to copy to clipboard. this will alert with text after highlighting. to remove the alert, remove
alert(copiedtext);
<script> bBool=false var copiedtext="" var tempstore="" function initiatecopy() { bBool=true; } function copyit() { if (bBool) { …
All 6 Replies
MattEvans 473 Veteran Poster Team Colleague Featured Poster
johnroach1985 0 Junior Poster
MattEvans 473 Veteran Poster Team Colleague Featured Poster
MidiMagic 579 Nearly a Senior Poster
MattEvans 473 Veteran Poster Team Colleague Featured Poster
Inny 1 Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.