Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Frames in Bootstrap? [duplicate]

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

like image 607
Mujahid Avatar asked Mar 27 '18 07:03

Mujahid


People also ask

Are frames deprecated?

Frames are deprecated in HTML5. Was used to control the borders around frames.

How do you link two frames in HTML?

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.

How do you use frame tags?

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.


1 Answers

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?

like image 167
Eriks Klotins Avatar answered Sep 25 '22 06:09

Eriks Klotins