How do I open a reference in another frame - html

I have a frame set with 2 frames.
<html>
<head>
</head>
<frameset cols="10%,*">
<frame src="Meniu.html">
<frame src="Secundar.html">
</frameset>
</html>
The output is this:
Frames
When I click on one of the references from the left frame, it opens in the same small frame, but how do I make to open the reference in the right frame, the bigger frame?

Disclaimer: <frameset> and <frame> are obsolete and do not work well in web-browsers at all. I can only conclude you're learning how to write HTML from a book published before 1997 - or you're a cruel sadist.
With that out of the way: Use the target="" attribute on your <a> and <form> elements to specify the <frame> by its name="" attribute.

Related

How to do this layout with iframes, in HTML

The layout i want to make
I dont know how to get the frames to layout in the right position I want, so I could use help.
That is done using frameset. I have added frameborder="1"which will show the border, you can set it to "0" or remove the borders. You can change the border size by adding border="1px". And add bordercolor:#000; for adding colors to the border. And for scrolling you can use scrolling="Yes/No/Auto" in the frameset beggining tag.The code given below will not work on Stack Overflow, Codepen,or JSFiddle as <frameset> is no longer supported in HTML5. But you can save the file locally or try it on W3Schools by pasting the following code, and it will work.Edit the frame sources, else it will not work (as I have given invald pages).
<html>
<frameset frameborder="1" rows="20%, 80%"><!--set frameborder value "0" for hiding the borders -->
<frame src="https://via.placeholder.com/1000X150/181818/FFFFFF/?text=20%">
<frameset cols="25%, 75%">
<frame src="https://via.placeholder.com/150X500/181818/FFFFFF/?text=25%">
<frameset rows="50%, 50%">
<frame src="https://via.placeholder.com/700X250/181818/FFFFFF/?text=75%">
<frameset cols="75%, 25%">
<frame src="https://via.placeholder.com/600X200/181818/FFFFFF/?text=50%">
<frame src="https://via.placeholder.com/200/181818/FFFFFF/?text=25%">
</frameset>
</html>

Frames not working in HTML5

I have a task to do and I know that I should not be using frames but I have to. I tried to load 3 html pages into 3 frames on the main page but it's showing absolutely nothing at all. This is the code:
<body>
<h4>BGJUG - Bulgarian Java User Group</h4>
<div class="menu">
ABOUT EVENTS CONTACTS SEARCH
<hr width="90%" />
</div>
<frameset cols="25%,50%,25%">
<frame src="a.html">
<frame src="b.html">
<frame src="c.html">
</frameset>
</body>
The <frameset> tag is not supported in HTML5. You will need to change your DOCTYPE to one that supports frames. Try this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
Also, see the comment by t.niese about framesets being direct children of <html>.
Alternatively, if you need the HTML5 features, you can accomplish the same thing with <iframe>. inside CSS boxes. Scrolling of <iframe> is also not supported in HTML5 but you can probably put the <iframe> tags in CSS boxes with overflow: scroll;. See the other comment by t.niese below this answer.

How to replace frameset and frame in html5?

I am designing a web page. Latest is HTML5 . So I want alternate to frameset. I have frameset as,
<frameset rows="75%,25%">
<frameset cols="20%,80%">
<frame src=<%=url%> name="left" />
<frame src=<%=ur%> name="top" />
</frameset>
<frame src=<%=u%> name="bottom"/>
</frameset>
I replaced for <iframe> as,
<iframe class="menu" src="newtag.html" onload="this.width=screen.width;this.height=screen.height;"></iframe>
here newtag.html is the previous html file which used <frameset>. My question is, is it good practice? is there any other good way in html5? if it is there please tell me how.? Thank you.
No, it isn't a very nice practice to perform...
instead you could try, content place holders as in asp or something like that

Html Frame Coding, Linking to info in another Frame

OK so I'm coding something and i have a left frame, a right frame, and of coarse the main frameset html document. I want to have a link in the left frame that when clicked will jump to information on the right frame like and , but i obviously not working, i believe I've seen it done, just don't know how to do it. Thanks
The link target must be the name of the frame you want the content to load into.
Link
Frameset:
<frameset cols="25%,*,25%">
<frame src="" />
<frame src="" />
<frame src="" name="myRightFrame" />
</frameset>

HTML Frameset Query

I have the following code for framset display
<FRAMESET ROWS="18%,*" >
<FRAME SRC="./views/Title_Page.html" NAME=TITLE SCROLLING=NO MARGINHEIGHT=1 noresize="noresize">
<FRAMESET COLS="20%,*">
<FRAME SRC="./views/Navigation_Page.jsp" NAME=SIDEBAR noresize="noresize" scrolling="no">
<FRAME SRC="./views/Welcome.html" NAME=MAIN noresize="noresize">
</FRAMESET>
<NOFRAMES>NOFRAMES stuff
</NOFRAMES>
</FRAMESET>
I want to add a logout link which logges out of the app ,when i add a link in Title_Page.html it logges out only that frame but not the others,how will handle it?i want to log out completly from all the frames
I must preface by saying that frames are pretty much frowned upon on the web these days. They're deprecated, they're not a good user experience, it's very difficult to link or bookmark a page, etc etc...
Add target="_top" to your logout link. It will target the "top" page (the one which defines all the frames). Also note that target is deprecated.
target="_top"
… same as anything else you want to hit the top window instead of the current frame.