I am starting to develop an application using bootstrap, did some research on how to have static left navigation bar and a dynamic content area on the right side but could not get a clue. Can somebody advice how to change only the content area (separate html page) every time a link is clicked and have a static navigation bar and header. Something like frameset tag available in HTML.
Basically i would not want to have a navigation bar code added to all the html pages in the application.
Thanks
Frames are deprecated in HTML5. Was used to control the borders around frames.
Loading content from one frame to another: The key to manipulating where contents are loaded is by: giving each individual frame a name in the master page. Adding a "target=" attribute to the "<a href=>" tag and referring to that specific frame's name.
To use frames on a page we use <frameset> tag instead of <body> tag. The <frameset> tag defines, how to divide the window into frames. The rows attribute of <frameset> tag defines horizontal frames and cols attribute defines vertical frames.
I think frames died long ago.
To achieve 'navigation' you need to some kind of templating and routing. Take a look at Angular or React. Pretty much any server-side language has web frameworks with templates.
Relevant discussion of how to achieve similar behaviour to frames: What are the new frames?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With