Click here to Skip to main content
11,804,574 members (94,679 online)
Rate this: bad
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 0: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 at 11-Mar-13 8:02am
My five!
Especially for the last bit of advice :)
Jayanta Chatterjee at 11-Mar-13 8:51am
My +5 for last suggestion....
gouravkaila at 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
0 OriginalGriff 3,140
1 Maciej Los 1,910
2 KrunalRohit 1,907
3 CPallini 1,845
4 Richard MacCutchan 1,187

Advertise | Privacy | Mobile
Web02 | 2.8.151002.1 | Last Updated 11 Mar 2013
Copyright © CodeProject, 1999-2015
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