navigation bar on more than one page

<!-- add in head: --> <script src="https://code.jquery.com/jquery-1.10.2.js"></script>

<!--Navigation bar-->
<div id="nav-placeholder">

</div>

<script>
$(function(){
  $("#nav-placeholder").load("nav.html");
});
</script>
<!--end of Navigation bar-->

3.83
6

                                    &lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
    &lt;link rel=&quot;stylesheet&quot; href=&quot;./bootstrap-3.3.2-dist/css/bootstrap.min.css&quot;&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;div class=&quot;container&quot;&gt;
        &lt;@wpbModule externalKey=&quot;9255b083-95a3-4752-a4fd-5bad5ad57fc0&quot; /&gt;
        &lt;h2&gt; Home page &lt;/h2&gt;
        Dummy home page...        
    &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;

3.83 (6 Votes)
0
3.33
6
DavidPCS 95 points

                                    &lt;script src=&quot;//code.jquery.com/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script&gt;
$.get(&quot;navigation.html&quot;, function(data){
    $(&quot;#nav-placeholder&quot;).replaceWith(data);
});
&lt;/script&gt;

3.33 (6 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
reusing the same NavBar to multiple pages how can we use navbar in multiple pages bootstrap navbar multiple page navigation bar multiple pages html link navbar across multiple pages how to link navbar across multiple pages how to create navbar for multiple pages using css how to keep use navbar on multiple html pages multiple navigation bar in a website same navigation bar multiple pages html same navbar multiple pages two different style navbar in one page multiple navbar creating multiple pages with navigation menus html navigation bar multiple subpages menu how can you use same html navbar on multiple pages multiple pages with navigation menus Creating multiple pages with navigation menus heading bar with multiple litems js reuse navigation bar html on all pages how to add a nav for each page how do i merge the data navigation menu in jsp html working menu bar multiple pages how ot include nav bar of home page on other pages make one page topnav for every page how to get nav bar to load multiple html pages how do you get your nav bar to go to multiple html files how to make navbar appear on all pages with html and css how to make navbar appear on all pages how to keep navbar in all pages navbar on multiple pages navbar for every page of a site html how to reuse navigation bar when there is a login or sign up how to make a multiple reuse navbar in php how i reuse my navigation bar on multiple pages How can I reuse a navigation bar on multiple pages? diffrent navbar in diffrent pages Best way to load navigation bar on every page html and css php use same html code for navigation how to creat one navigation bar for the whole website a website with multiple pages but have one navbar javascript a website with multiple pages but have one navbar php to use the same nav navigation bar to every page html navbar across all pages reuse navbar html without jquery reuse navbar html javascript html shared navbar how to make a navbar display multiple pages in same div use same nav bar on multiple pages js navbar same on each page embed html how to make the same topnav for every page how to use same navbar on each page Javascript using one navbar in multiple html file how to not display extension in navigation bar html js navbar separate file include same navbar apply navbar to every page master page navbar multiple pages navbar between different html pages navbar on more than one page navigation bar on more than one page create seprate html file for nav bar how to make a menu stay on all pages how to have one navbar in all pages bootstrap how can reuse css of navbar how to use same nav bar in all files of html Bootstrap navbar multiple pages Same navbar on multiple pages JS using nav element on multiple pages how to get navigation on every page with html how can we use same navbar across all html How to have a navbar on multiple html pages that changes How to have a navbar on multiple html pages static html multi pages same navbar add navbar to all pages navbar load another page from current page how to put nav bar to every page best practicses how to have same navbar multiple pages how to have same navbar multiple pages how to use common navbar website multiple pages no navbar javascript html how to set a nav bar on every page html how to reverence navbar in all pages html how to revernce navbar in all pages how to have navigation the same on alll pages html how to make navbar same index in html html navigation bar across pages how to keep menu same on all pages, html javascript include navigation file in index how to use a navigation bar across all pages in html keepinh the nav bar same only te content of page should be change in html html how to call nav bar on every page how to use the same navigation bar multiple pages boot how to use the same navigation bar multiple pages how to include navbar in all pages navbar multiple pages
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source