There are several topics on this, but none that completely answer my question.
I would like to be able to have a link which loads a whole HTML file into a DIV.
This, for example, will load just text into my "MainBack" DIV. It works fine:
<a href="#computing" onclick="document.getElementById('MainBack').innerHTML = '<p>1</p>';">Computing</a>
but I would like to load an entire file into it like this:
<a href="#computing" onclick="document.getElementById('MainBack').innerHTML = 'HTML FILE';">Computing</a>
Any advice? I'm pretty new to this!
1
but not stuff like YouTube embeds. – Mark Brewerton Feb 13 '11 at 21:49