Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Regular Coder feras_wilson's Avatar
    Join Date
    Jul 2005
    Location
    Sweden
    Posts
    129
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Open a .doc file

    Hi all!
    I can't open a .doc file in this script:
    Code:
    <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!
    Last edited by feras_wilson; 01-24-2006 at 08:36 PM.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •