faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

197 of 250 people (79%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

How do I access the general windows clipboard in IE using javascript

Apr 4th, 2008 19:49
ha mo, David Medinets, STeve Morris,


When using the following html page you can click on a line and then 
paste the text into some input window - like MS Word or Notepad.
<HEAD>
<SCRIPT>
// SaveToClibboard
function S2CB() {
  window.clipboardData.setData('Text', event.srcElement.innerText);
}
</SCRIPT>
</HEAD>
<BODY>
<B ID="oSource" onClick="S2CB()">111</B><br>
<B ID="oSource1" onClick="S2CB()">222</B><br>
<B ID="oSource2" onClick="S2CB()">333</B><br>
</BODY>
</head>
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com