WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Copying to clipboard the contents of a SPAN or DIV, Guillermo, September 12, 2003
     Re:Copying to clipboard the contents of a SPAN or DIV, Erik Arvidsson, September 13, 2003

Subject: Re:Copying to clipboard the contents of a SPAN or DIV From: Erik Arvidsson Date: September 13, 2003
There is no need to use a text range or execCommand when working with the clipboard. The clipboard has its own interface in IE5+.

var cb = window.clipboardData;
alert(cb.getData("text"))
cb.setData("text", "Plain text data");

erik



Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX