• Post Reply Bookmark Topic Watch Topic
  • New Topic

Copy image to clipboard  RSS feed

 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!