Below is the example where I have used header content and footer content into different file
and called these two files into all files wherever header and footer requires.
<html><body><script type=”text/javascript” src=”header.js”> </script><p>Content of the page</p><script type=”text/javascript” src=”footer.js”> </script></body></html>
document.write(“<h1>Header</h1>”);
document.write(“<h2>Tag Line</h2>”);
document.write(“<h2>Contact us</h2>”);
document.write(“<h3>9876543210</h3>”);
Header
Tag LineContent of the page in detailsContact us
9876543210





















