Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Including other HTML files

Status
Not open for further replies.

tcrosswell

IS-IT--Management
Oct 14, 2001
26
GB

I was wondering how can I include another HTML file? I have a table and in one of the colums I have a navigation link bar. I want to put that all into another HTML file and call it from each page. How could I do this?

Thanks

Tom
 
You could use an Iframe.

<iframe src=&quot;whatever.html&quot; frameborder=&quot;0&quot;></iframe>

It's IE 3+ and NN 6.0+, I think. If you can use SSI, there's a different way that can be supported by more browsers.
Rick
 
Thanks Rick

Yeah I had considered a iframe but as you say it is not really supported in earlier versions of Netscape :(
Also considered an <object> but that again has the same incompatibility problems!

Thanks though for your thoughts

Tom

 
Hi mate,

If the server supports SSI then use that..

Rename all your files to .shtml or whatever the server uses and include the following.

<!--#include file=&quot;navbar.html&quot; -->

Just place the code where you want the navbar to appear and then in the navbar.html file put the code for the navbar..

Hope this helps Wullie

 
I was using <object> until I found out about iframes. I switched when I found out how many more browsers support Iframes. My site doesn't support SSI, but if yours does, I think that's probably the better way.
Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top