Include an external file inside of HTML
by vmars316 - 10/7/12 11:41 AM
In Reply to: Re: include text file by Kees_B
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>
Was this reply helpful? (0) (0)
Staff pick