vmars316 Posted October 7, 2012 Share Posted October 7, 2012 I am trying to Include an external file inside of HTML that will work as crossBrowser: I have come up with three methods of coding it, but only Chrome works for all 3 methods.Anyone know of different ways to do this ?Thanks...Vernon Including an external file inside of HTML: In the 3 methods below , for GoogleChrome, all Methods(1,2,3) work ,and all methods show search results. For InternetExplorer, all Methods(1,2,3) show something ,BUT ONLY 'Method 2' shows search results. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Minimalist Html Code</title> </head><body><br><br>Method 1<br><embed src="C:\Users\vm\Desktop\myPrograms\~PortableFreeware.com\AkelPad\~~~Scratch.txt"><br><br><br>Method 2<iframe src="C:\Users\vm\Desktop\myPrograms\~PortableFreeware.com\AkelPad\~~~Scratch.txt" width="800" height="800"><a href="C:\Users\vm\Desktop\myPrograms\~PortableFreeware.com\AkelPad\~~~Scratch.txt">Hmm, you are using a very old browser.Click here to go directly to included content.</a></iframe><br><br><br>Method 3<object width="800" height="800" data="C:\Users\vm\Desktop\myPrograms\~PortableFreeware.com\AkelPad\~~~Scratch.txt"></object> <br> <br></body></html> Link to comment Share on other sites More sharing options...
Ingolme Posted October 7, 2012 Share Posted October 7, 2012 <embed> and <object> are for content that needs to be loaded by plug-ins. For the browser to load files it's best to use the <iframe>. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now