pagallery Posted August 2, 2007 Share Posted August 2, 2007 I want to put a link on a webpage to a Word document. The code I used was simply:<a href="testdoc.doc" target="_blank">test doc</a>which works fine in Netscape, IE and Firefox where the document opens up in Word. In Opera, I get a page of rubbish. Is it possible to get Opera to open a Word document and, if so, what is the code?Thanks(Edited to remove typo in target) Link to comment Share on other sites More sharing options...
Kingy Posted August 2, 2007 Share Posted August 2, 2007 _ablank? Try this<a href="testdoc.doc" target="_blank">test doc</a> Link to comment Share on other sites More sharing options...
pagallery Posted August 2, 2007 Author Share Posted August 2, 2007 Sorry - typo in original - I have used target="_blank" I'll edit my original post. Link to comment Share on other sites More sharing options...
Kingy Posted August 2, 2007 Share Posted August 2, 2007 Thanks. =)Right, you got an example for us to look at?I'm not 100% sure why it's not working. Link to comment Share on other sites More sharing options...
pagallery Posted August 2, 2007 Author Share Posted August 2, 2007 When I load the files up on to my web space and access the page that way, Opera loads the word document.When I open the page offline using Opera, the Word document comes up as rubbish. So I'm sorted for when it goes live. But have no idea why it doesn't work locally - the files are the same. Link to comment Share on other sites More sharing options...
Kingy Posted August 2, 2007 Share Posted August 2, 2007 That's strange, never heard that happen before...try saving the word document as an rtf instead of a doc and see what happens. Link to comment Share on other sites More sharing options...
justsomeguy Posted August 2, 2007 Share Posted August 2, 2007 It's a mime type issue. The online server is sending Opera the mime type that it needs to open the file correctly, when you're testing it out locally that doesn't happen. Link to comment Share on other sites More sharing options...
Guest FirefoxRocks Posted August 4, 2007 Share Posted August 4, 2007 Try using this code instead: <a href="testdoc.doc" target="_blank" type="application/msword">test doc</a> This should fix the problem locally as well as online. Otherwise, you could always use Google Docs and Spreadsheets. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.