I want to create common header and footer pages that are included on several html pages.
I\'d like to use javascript. Is there a way to do this using only html and
It is also possible to load scripts and links into the header. I'll be adding it one of the examples above...
document.write('');
document.write('');
document.write('');
document.getElementById("myHead").innerHTML =
"Title"
+ "Subtitle";
document.getElementById("myNav").innerHTML =
" ";
document.getElementById("myFooter").innerHTML =
"Copyright © " + new Date().getFullYear() + " You. All"
+ " rights reserved.
"
+ "Layout by You
"
+ "Contact Us / "
+ "Report a problem.
";
Content