I have a file input set up such that when a user selects a file for the input, it is embedded in the page. I have this working for PDFs using PDFObject, but the users might also want to select Word files and view them in a similar way. Is there any way to achieve this? I haven't found anything by searching yet.
Clarification: This is intended to work offline, so I don't want to make use of PHP or uploading the file to Google Docs etc. I am looking for a client-side method, similar to PDFObject.