I'm sorry if this is considered too general a question. I have a website that I'm creating from scratch and without any CMS or fancy tools. I have like 20 lines of HTML that compose the header that is the same on every page. So it seems logical that I should use document.write(header) inline where the header needs to be on each page, and before that have a way of grabbing the HTML for the header from a local HTML file.
- Is this easy to do?
- If so, what functions do I need?
- Could you provide an example, assuming that the external file is called
header.html?