Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

frame resize not working... 1

Status
Not open for further replies.

sonicsnail

Technical User
Joined
Nov 10, 2001
Messages
48
Location
IN
I'm using...

function showBottFrame() {
parent.document.body.rows = "*,300"
}

to make a bottom frame appear... (initially the bottom frame has a height of "5" - the function above changes it to a height of 300.

This works fine, however what I want to do is be able to have onclick="showBottFrame(300);" and change the function to something like...

function showBottFrame(heightChoice) {
parent.document.body.rows = "*,heightChoice"
}

but its not working... I'm sure I have the right idea but I'm getting the syntax wrong...

any ideas anyone?
 
This ought to work:
Code:
function showBottFrame(heightChoice) {
parent.document.body.rows = "*,"+heightChoice
}
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Thank you very much...

always learning...

Pete.
 
You're quite welcome! I'm always learning too. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top