Home › Forums › Design › Navigation menu on every page (no php, please) › Reply To: Navigation menu on every page (no php, please)
Sorry – The menu markup can’t go in the head element. It should go in the body element, along with the iframe through which to view other pages/content.
You might want to research more about the basic structure of a web page before you look into JavaScript.
You also should consider that if a navigation was inserted into a page via JavaScript, and JavaScript was turned off on the client device/stuck behind a firewall/blocked by corporate policies/failed to load for whatever reason, the site would be pretty unusable.
I would still say to use server-side solutions like PHP, which can be made to run in standard .html/.htm pages IF the server is setup to parse PHP in .html/.htm. You can do this through .htaccess. Just something else to consider.