Jump to content

HTML frames * newbie


lesage
 Share

Recommended Posts

Hello I'm new to HTML and working my way through the tutorial I have reached the part where you learn to make frames. To test all the topics I each time make a small none important web page. On my mail page I have 3 frames 2 rows, 2nd row 2 cols and in the 1st cols I have 3 links; the first opening my mainpage and the other two opening a random webpage from the web like wikipedia and imdb. All pages should open in the 3th frame (2nd row 2nd column) due to the target="rechtsonder" attribute which tis the name="rechtsonder" attribute on my frameset page (index.htm) This al works fine the first few times I click the links but after a few clicks the pages open on top of the index.htm page as If I were to write target="_top" as attribute.. Anyone who knows what I'm doing wrong? Here is my code: index.htm:---------------------------------------------------------------------------------------------------------------------------------------<html><frameset rows="7%,*"> <frame noresize="noresize" src="bovenlijst.htm" /> <frameset cols="10%,*"> <frame noresize="noresize" src="frame.htm" /> <frame src="mainpage.htm" name="rechtsonder" /> </frameset> <noframes> <body>Your browser does not handle frames!</body> </noframes></frameset></html>--------------------------------------------------------------------------------------------------------------------------------------- frame.htm:---------------------------------------------------------------------------------------------------------------------------------------<html><body style="background-color:blue;"> <a href ="mainpage.htm" target="rechtsonder">website</a><br> <a href ="http://www.wikipedia.com" target="rechtsonder">wikipedia</a><br> <a href ="http://www.imdb.com" target="rechtsonder">imdb</a></body></html>--------------------------------------------------------------------------------------------------------------------------------------- Thank you very much

Link to comment
Share on other sites

Ok, next chapter: Iframes "An iframe is used to display a web page within a web page." That solves my question I guess, sorry. Any Ideas why it works somethimes but not always the way I did it? Thanks

Edited by lesage
Link to comment
Share on other sites

hmm, even using iframes I get the same problem it works fine clicking the links for the first few times but suddenly they start opening in the entire browser window instead of in the iframe: simple test code: ----------------------------------------------------------------------------------------------------------------------------------------------<html><body><a href="http://www.imdb.com" target="iframetest">imdb</a><a href="http://www.google.com" target="iframetest">google</a><a href="http://www.wikipedia.com" target="iframetest">wikipedia</a><iframe src="mainpage.htm" width="100%" height="100%" name="iframetest"></iframe></body></html> ---------------------------------------------------------------------------------------------------------------------------------------------- Does anyone know why this happens? Thank you

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...