Jump to content
vmars316

Include external file inside of HTML ?

Recommended Posts

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>

Share this post


Link to post
Share on other sites

<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>.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...