Click here to Skip to main content
13,258,269 members (39,457 online)
Rate this:
Please Sign up or sign in to vote.
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 11-Mar-13 1:34am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Of course you can manipulate frames with javascript (if you don't try to violate same-origin policy). See these:[^][^]

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.
Manfred R. Bihy 11-Mar-13 8:02am
My five!
Especially for the last bit of advice :)
Jayanta Chatterjee 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.171114.1 | Last Updated 11 Mar 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100