well I have a problem, well more than a problem is that i dont know how to do it, I need a boton that select all, copy, open word (.doc files) and paste it in word(in a new file), help me please!! here is what I have done tell me what I have to change to it to do this, thanks for your time and effort.
<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="something.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 open and paste in word"><br>
<br>this is supposo to copy the whole page and pate it in a new document of word
</body></html>
<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="something.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 open and paste in word"><br>
<br>this is supposo to copy the whole page and pate it in a new document of word
</body></html>