File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Copy image to clipboard