well this code copy the entire page then open an existing file in wordpad, well what I want to do is that copy the whole page, open word from office and paste it there just with one boton, someone told that i have to call a "com" that open word and do the paste in the new fiule of word just with one click, well here is the script!!
thanks but for this code what i have to change to do that?
<html><head><script>
function copy() {
holdtext=document.frm1.holdtext;
holdtext.innerText = document.body.innerText;
//holdtext.innerText = disp.innerText;
Copied = holdtext.createTextRange();
Copied.execCommand("RemoveFormat");
Copied.execCommand("Copy"); }
function openword(){location="somefile.wrd"}
</script></head><body>
<form name="frm1"><textarea name="holdtext" style="visibility:hidden"></textarea></form>
<input type=button onclick="copy();openword()" value=http://www.webdeveloper.com/forum/archive/index.php/"Copy the whole page"><br>
<br>click here!
</body></html>
__________________
thanks but for this code what i have to change to do that?
<html><head><script>
function copy() {
holdtext=document.frm1.holdtext;
holdtext.innerText = document.body.innerText;
//holdtext.innerText = disp.innerText;
Copied = holdtext.createTextRange();
Copied.execCommand("RemoveFormat");
Copied.execCommand("Copy"); }
function openword(){location="somefile.wrd"}
</script></head><body>
<form name="frm1"><textarea name="holdtext" style="visibility:hidden"></textarea></form>
<input type=button onclick="copy();openword()" value=http://www.webdeveloper.com/forum/archive/index.php/"Copy the whole page"><br>
<br>click here!
</body></html>
__________________