Word in html

Discussion in 'HTML & Website Design' started by XandroZ, Mar 12, 2007.

  1. #1
    Ho do I put a word .doc file in a html or php page;in a div(layer)?
     
    XandroZ, Mar 12, 2007 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    Not tested.
    
    <div>
      <object type="application/msword" data="someword.doc">
        <p><a href="someword.doc">Access the document directly</a></p>
      </object>
    </div>
    Code (markup):
    For IE, you probably need to register an active-X thingie. For other browsers, the alternative content shows, and a click opens whichever app handles .doc files. For me, that's OpenOffice.org. I don't allow .doc files on any MSFT application, as Word is one of the top three vectors for malware. :shrug:

    cheers,

    gary
     
    kk5st, Mar 12, 2007 IP