BootStrap Sample Code

Source Code

 
    Simple way to include content from another HTML

    1. Including content from other HTML is sometimes a great design choice if a section of the website is going to be same across a lot of pages.
    2. For instance the top menu might be same for many pages. In this instance if they share the same code then it’s very easy to update the menu.
    3. Using the traditional include statement is not the complete solution as it might not work in some browsers because of the CORS issue.
    4. This can be solved if one uses JavaScript judiciously.
    5. Following link has a piece of code that showcases this technique. The script part can be stored externally as ext.js and referred as follows
    script src="ext.js"

 

Important Links