Sunday, November 21, 2010

How do I get a local html file to include another local html file from my hard drive?

I have an html file that I use as a basic page for a web page. I need for this file to be able to read in data from other html files at various spots within this file. I won't be posting these files to the www, so need them to have this capability without server-side functions.



Any ideas?How do I get a local html file to include another local html file from my hard drive?
Two possibilities:

1) JavaScript includes.

2) Using an iFrame.



For code/examples, refer to the sources I listed.How do I get a local html file to include another local html file from my hard drive?
If you don't want to set up a local web server and use server-side includes, you can try javascript client-side includes.

No comments:

Post a Comment