How to make an HTML frame unmovable? - html

How can I modify this frames so that users can not move those frames?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title></title>
</head>
<frameset border="1" rows="100, 200" >
<frame src="page1.html">
<frameset border="1" cols="20%, 80%" >
<frame src="page2.html">
<frame src="page3.html">
</frameset>
</frameset>
</html>

You can use the noresize attribute to disable it:
<frameset border="1" rows="100, 200" >
<frame src="page1.html" noresize>
<frameset border="1" cols="20%, 80%" >
<frame src="page2.html" noresize>
<frame src="page3.html" noresize>
</frameset>
</frameset>

I second what Nick said, but would just like to add that I think it should be one of the following:
noresize="true"
noresize="noresize"
I am not sure which one it is, but I know the attribute "nowrap" uses "nowrap" for the value too, instead of true. Can someone please confirm which of the above options applies here?
Also do you have to use frames? I notice you are loading pages in each one. If you create them as divs, you can use most server side languages to load pages into the divs. For example:
In ASP.Net you are able to do this - but unfortunately I do not have the code for this available right now. There is a way to process a page within a page.
In PHP you can use the include command (include "page1.htm";). PHP is much simpler in my opinion.

Related

Why, when trying to set the frame it doesn't work

i have to do homework which should look like this:
frame homework
i managed to do: (my try)
<HTML>
<frameset cols="*,200">
<frameset rows="100,*,15%">
<frame src="rl_gorna.html">
<frame src="rl_srodkowa.html">
<frameset cols="15%,*">
<frame src="rld_lewa.html">
<frame src="rld_prawa.html">
</frameset>
</HTML>
But i dont know how to do right side because It breaks all the time. I thought that when i will add over "frameset rows="100,*,15%" frame src it will work fine but its not
Make sure you get the nesting in order, and don't forget to close your <frameset> elements:
<frameset cols="*,200">
<frameset rows="100,*,15%">
<frame src="rl_gorna.html">
<frame src="rl_srodkowa.html">
<frameset cols="15%,*">
<frame src="rld_lewa.html">
<frame src="rld_prawa.html">
</frameset>
</frameset>
<frame src="r_prawa.html">
</frameset>
See a working CodeSandbox
And a friendly note: <frame> and <frameset> elements are deprecated, so I'd put them to rest when your homework is done.

How do I find the iframe on this page?

http://www.sandyscastles.net/mlsalt.html
I want to use this iframe on a new site (getting rid of this one). I inspect the element in Chrome... but can't get the iframe to work... I must not be looking at the right source.
Can someone write me a clear explanation of how to find this code?
are you trying to replace iframe?
This is the code your page have.
<frameset rows="116,*" cols="*" frameborder="NO" border="1" framespacing="0">
<frame src="mls2.html" name="topframe" scrolling="NO" noresize="">
<frame src="http://elko.fnismls.com/idx/idx.aspx?Mls=ELKO&Subscriber=bfad323f-3818-41b4-a951-8e2700f75a33&MLSSearch=1" name="body" scrolling="no" noresize="">
</frameset>

Second Frameset not appearing in IE8

I am working on a facelift for a legacy site that has to function in IE5 and up. I have it working in everything but IE8. It uses framesets and that is not something I can change unfortunately.
For some reason, in IE8 on Windows 7 and XP, the second frameset in a nested frameset group is not showing up. It is also a nested frameset.
I have tried viewing this in compatibility mode and without compatibility mode. It is also running on a server, not just a file. My head doesn't use the x-frame-options call in it because the site resides on a non-networked server, so there is no way it can be clickjacked.
Below is my code:
frameset rows="120, *" border="0">
<frameset cols="100%" border="0">
<frame src="masthead.html" style="width: 100%; display:" scrolling="no" noresize></frame>
</frameset>
<frameset cols="240, 640*" border="0">
<frame src="menu.html" scrolling="no" noresize></frame>
<frameset rows="*" border="0">
<frame src="cathome.html" name="main" scrolling="auto" noresize></frame>
</frameset>
</frameset>
</frameset>
It resides in an HTML page that has html, head, title and body tags as well.
The top frameset appears fine, there is just no bottom one. I can also see this exact code when I view source, so it is not removing anything when rendering. Thanks -
The frameset is invalid, and as known, IE is not the best browser to show invalid HTML. Remove the extra framesets:
<frameset rows="120, *" border="0">
<frame src="masthead.html" scrolling="no" noresize></frame>
<frameset cols="240, 640*" border="0">
<frame src="menu.html" scrolling="no" noresize></frame>
<frame src="cathome.html" name="main" scrolling="auto" noresize></frame>
</frameset>
</frameset>

white space on the entire screen when i use frameset

I have a big white space filling almost half of the screen, this is the same error on every browser. Even when i click links it doesn't go away.
Here is the index file
<html>
<title>Terrapene.dk</title>
<frameset rows="*,*" cols="316" framespacing="0" frameborder="0" border="false">
<frameset rows="72,89%">
<frame name="hoved3" src="front.htm" target="_self" scrolling="no" noresize marginheight="5">
<frameset cols="*,80%">
<frame name="hoved5" src="bond.htm" target="_self" scrolling="auto" noresize>
<frame name="hoved4" src="Velkommen/Velkommen.html" target="_self">
</frameset>
</frameset>
<noframes>
<body bgcolor="#008000">
</body>
</noframes>
</frameset>
</html>
I made the following change to the outer frameset to address the white-space issue (note the change from wildcard (*) to 100% height):
<frameset rows="100%,*" cols="316" framespacing="0" frameborder="0" border="false">
Here's a demo page on my server:
http://jackpattishalljr.com/stackoverflow/terrapene.html
Also, it probably wouldn't hurt to add the frameset doctype (although, this by itself, does not address the whitespace issue you found):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
P.S. Thanks for this BLAST FROM THE PAST with a frameset question ;)

Creating four frames using HTML

I need to create four frames in an HTML document. The code below creates only three frames.
<!DOCTYPE html>
<html>
<FRAMESET cols="100%" rows="10%,90%" >
<FRAMESET rows="100%,">
<FRAME src="frame_a.htm">
</FRAMESET>
<FRAMESET cols="20%,60%" rows="40%,80">
<FRAME src="frame_b.htm">
<FRAME src="frame_c.htm">
</FRAMESET>
<FRAMESET rows="60%," >
<FRAME src="frame_d.htm">
</FRAMESET>
</FRAMESET>
</html>
This snapshot explains the question. Notice that the above code didn't create frame D.
That's because the two top rows take up 100% of the height, and you haven't specificed any height for the third.
Try:
<FRAMESET cols="100%" rows="10%,40%,50%">
<FRAMESET cols="100%" rows="10%,90%"> creates a frameset with two frames: The first one with 10%, the second one with 90%. Since you want three rows you need to add a third value.