473,408 Members | 1,784 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Change framset by javascript

How to Resize a frameset without an id eg.

<frameset rows="85,*" framespacing="0" border="0" frameborder="NO">

<frame src="url1" name="dot_tk_frame_top" noresize scrolling="NO">
<frame src="url2" scrolling="auto" noresize>
</frameset>

sow thw rows change to eg. 75,* instead of 85,*

Feb 11 '07 #1
2 2752
hu*******@gmail.com wrote:
How to Resize a frameset without an id eg.

<frameset rows="85,*" framespacing="0" border="0" frameborder="NO">

<frame src="url1" name="dot_tk_frame_top" noresize scrolling="NO">
<frame src="url2" scrolling="auto" noresize>
</frameset>

sow thw rows change to eg. 75,* instead of 85,*
If you have a single not nested frameset then you can do e.g.
parent.document.body.rows = '75,*';

You can also use getElementsByTagName('frameset') and use a numerical
index e.g.
parent.document.getElementsByTagName('frameset')[0].rows = '75,*';
--

Martin Honnen
http://JavaScript.FAQTs.com/
Feb 11 '07 #2
On Feb 11, 5:41 pm, Martin Honnen <mahotr...@yahoo.dewrote:
hugoat...@gmail.com wrote:
How to Resize a frameset without an id eg.
<frameset rows="85,*" framespacing="0" border="0" frameborder="NO">
<frame src="url1" name="dot_tk_frame_top" noresize scrolling="NO">
<frame src="url2" scrolling="auto" noresize>
</frameset>
sow thw rows change to eg. 75,* instead of 85,*

If you have a single not nested frameset then you can do e.g.
parent.document.body.rows = '75,*';

You can also use getElementsByTagName('frameset') and use a numerical
index e.g.
parent.document.getElementsByTagName('frameset')[0].rows = '75,*';

--

Martin Honnen
http://JavaScript.FAQTs.com/

I cna't get it ot work,

<frameset rows="85,*" framespacing="0" border="0" frameborder="NO">

<frame src="url1" name="name1" noresize scrolling="NO">
<frame src="url2" scrolling="auto" noresize>
</frameset>

the script is place i url2 i have jsut place the folowing script in
header

<script language="JavaScript" type="text/javascript">
parent.document.getElementsByTagName('frameset')[0].rows = '10,*'
</script>

Feb 11 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: TheKeith | last post by:
I don't know much about javascript, so take it easy on me. Is there a way to dynamically change a CSS layers dimensions on the fly. Here is what I'm doing. I have a bunch of thumbnails that when...
1
by: psy | last post by:
Hi, Is it possible to avoid Netcape to reload the frameset if the size of the frameset is altered or if one of the frames is changed using i.e. javascript? The issue is that one the frame...
2
by: Rob | last post by:
Hello Group, I have trouble changing the <title> of my site, http://www.robcoers.nl I Changed the title in the frames rubriek.htm and body.htm but it keeps saying the old title, Rob Coers...
2
by: Tom Jordan | last post by:
Hi all, Ok, could do with some advice on this. I've written a script in ASP for a client so they can compose HTML newsletters and include various products from the online database. I didn't...
3
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - I have window.status="Moomin"; why doesn't the statusbar change?...
4
by: arsakis | last post by:
Hi, I am using the following framset doctype in my html code <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">. I have a span tag for a...
2
mrmiffo
by: mrmiffo | last post by:
Hi, I want to animate the change of a frames' size. Something like; for (i=0, i<250, i++) { var aValue = i + "px,*" parent.document.getElementById(whichFrameSet).cols = aValue; } What I do...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.