title: Same navigation bar in every page using JS
body: <p>I know there is multiple ways to include a <strong>navigation bar</strong> using <strong>JS</strong> or <strong>JQuery</strong> and the script tag in the page you will use it,but for me ,this is not ideal,cause once you use the script tag,you can no longer use JS in your page.Is there a way you can create a nav-bar using js,(f.e. <strong>navbar.js</strong>), then lets say for example i have a <strong>frontpage.html</strong> with <strong>src=&quot;frontpage.js&quot;</strong> and in frontpage.js,i can use <strong>require('./navbar.js')</strong> that will create my navbar.</p>