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
You could also put: (load_essentials.js:)
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