Just call below javascript in your code. it will copy div tag data to excel sheet
function copyToClipboard(){
//document.getElementById('copyDiv').focus();
var text = document.getElementById('copyDiv').innerHTML;
if (window.clipboardData.setData("TEXT", text)){
alert("switch to excel and click paste");
}else{
alert("Oops, that didn't work?");
}
}
Wednesday, February 2, 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment