Copy to clipboard

W

wesley

Hi guys, i want my code to copy the contents of a table by clicking on
the button. How do i go about doing that?
Thanks Wes
 
R

Randy Webb

(e-mail address removed) said the following on 6/6/2006 7:56 AM:
Hi guys, i want my code to copy the contents of a table by clicking on
the button. How do i go about doing that?

if (window.clipboardData){
window.clipboardData.setData('Text',refToTableContents)
}

Where refToTableContents is what you want to copy to the clipboard. It
is IE only.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top