Changing Frameset properties using Java Script

Posted on 2003-03-12
Medium Priority
Last Modified: 2012-06-27
We have a frame set that has two rows with frames.  The top frame will display a search result and when the user clicks on a item in the serach result the bottom frame will display that web page.

We would like to be able to change the size of the rows in the frame set when the user clicks on an entry in the search result.  When an entry is selected the top frame will shrink in size and the bottom frame will increase in size.

Can this be done in Java script and how ?  
Question by:mtackman
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 12

Accepted Solution

lil_puffball earned 400 total points
ID: 8121497
Yes, it can be done:

<a href="somehwere.htm" target="bottom_frame" onClick="window.parent.framesetname.rows='50,*'">

But you'll have to name your frameset, like so:

<frameset name="framesetname" rows="100,*">
<frame src="url.htm">
<frame src="url.htm">

Let me know the results!

Author Comment

ID: 8121544
It works great.  Thanks for your help, I was missing the name="" on the frameset, once I had that everything worked.
LVL 12

Expert Comment

ID: 8122541
Your welcome, and thanks for the A! :)

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question