Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello Mentors,

I am stuck with some HTML issues while working with frames.
I have a frameset with four frames.

In Frameset i have given rows attribute as 10%,10%,40%,40%

as follow:

<frameset id="mainbody" rows="10%,10%,40%,40%" border="false" frameBorder="0" frameSpacing="0">
<frame name="topHeader" src="../Something.aspx" frameBorder="0" marginHeight="10" noResize="noresize" scrolling="no" height="100%">
<frame name="Frame2" src="NGTPMainBody.htm" frameBorder="0" noResize="noresize">
<frame name="Frame3" frameBorder="0" noResize="noresize" scrolling="no">
<frameset id="Frame4" cols="0%,60%,0%" border="false" frameBorder="0" frameSpacing="0">


Now frames are loading great but i have one more requirement to change the frame3 and frame4 in a horizontally seperated way.

Can i do it in Javascript at runtime. Please suggest!
Posted

1 solution

Of course you can manipulate frames with javascript (if you don't try to violate same-origin policy). See these:
http://www.mobilefish.com/tutorials/javascript/javascript_quickguide_framesize.html[^]
http://javascript.gakaa.com/frame-height-2-0-width.aspx[^]

But forget frames! It is a really old way to make layout. It is deprecated already in HTML5. Switch to table-less layout if possible.
 
Share this answer
 
Comments
Manfred Rudolf Bihy 11-Mar-13 8:02am    
My five!
Especially for the last bit of advice :)
JayantaChatterjee 11-Mar-13 8:51am    
My +5 for last suggestion....
gouravkaila 12-Mar-13 3:08am    
Thanks Alot :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900