wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes Copy image to clipboard Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Copy image to clipboard" Watch "Copy image to clipboard" New topic
Author

Copy image to clipboard

Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
Hi everybody,

Does Javascript provide some built-in support for copying an image embedded in an HTML page to the clipboard ?

I know IE's window.clipboardData.setData() function but it only allows to copy text and URLs... Is there some other trick for images ?

Thanks in advance


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
I do not think it is possible, I could not find anything on it and I tried and got errors!

Eric
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
Well, that's a pity! I'm just wondering why Microsoft implemented the Text and URL data transfers for the setClipboardData function and the Text, URL and Image data transfers only for the clear function.
Thanks anyway
 
 
subject: Copy image to clipboard
 
Similar Threads
copying JFrame into Clipboard - urgent
Urgent..Need some help...
Copying Images to the System Clipboard (Java 1.1.x)
Is there any way of getting an image from the system clipboard?
Java Image Capture, Buffered Image, Paste in MSWord 2007 problem