function copyToClipboard(theField) ...{ var tempval=eval("document.all."+theField); tempval.focus(); tempval.select(); if (document.all) ...{ therange=tempval.createTextRange(); therange.execCommand("Copy"); window.status="Contents highlighted and copied to clipboard!" setTimeout("window.status=''",1800); alert('成功复制到Windows剪贴板,现在可以直接粘贴到Email信纸。'); } }