function copyFn()
{
var strCopy=document.getElementById("head").outerHTML;
window.clipboardData.setData("Text", strCopy);
var objExcel = new ActiveXObject("Excel.Application");
var objWorkbook = objExcel.Workbooks.Add;
var objWorksheet = objWorkbook.Worksheets(1);
objExcel.visible = true;
objWorksheet.Paste;