[thelist] JS help: including a file as footer

Craig Saila crsaila at yahoo.ca
Wed Jul 24 08:11:01 CDT 2002

Tim Luoma wrote:
> Now I don't know jack 'bout JavaScript, and haven't had any luck trying
> to find any good examples of how to have 'footer.js' read the contents
> of 'footer.html'

Depending on the site's target browser audience (i.e., fifth generation
and higher), you may want to consider building it using the W3C's DOM.
Scott Andrew Le Pera has a good tutorial on this:

One big catch with using the JavaScript call is that anyone with a
browser that doesn't support it (which is about 10% of the browsers out
there) won't see the footer.


Craig Saila
craig at saila.com  :  http://www.saila.com/

More information about the thelist mailing list