feras_wilson
01-24-2006, 08:33 PM
Hi all!
I can't open a .doc file in this script:
<script>
function openAfile() {
win = window.open(myfile.value)
mytext.document.body.innerHTML=win.document.body.innerHTML
win.window.close()
}
</script>
<body>
<iframe id="mytext">
</iframe>
<input type="file" name="myfile">
<input type="button" onclick="openAfile()" value="Open file">
</body>
Can some one give me the code?
Please Help!:confused:
I can't open a .doc file in this script:
<script>
function openAfile() {
win = window.open(myfile.value)
mytext.document.body.innerHTML=win.document.body.innerHTML
win.window.close()
}
</script>
<body>
<iframe id="mytext">
</iframe>
<input type="file" name="myfile">
<input type="button" onclick="openAfile()" value="Open file">
</body>
Can some one give me the code?
Please Help!:confused: