posted 18 years ago
Got the soln..
pust the text in a span and
then use this function
function getSelected1()
{
var text1 = document.getElementById('span1').innerHTML
window.clipboardData.setData('Text', document.getElementById('span1').innerHTML)
document.getElementById('span1').style.color= 'white'
document.getElementById('span1').style.background= 'black'
}
span id="span1"
Hi there!!!
/span