View Full Version : need help with submit buttons

10-09-2005, 03:30 PM
I have multiple submit buttons all on one page, problem is though, that i cannot get them to work with an iframe i have set within a frameset, heres what im using:

<input type=submit value=home onclick="center.location='home.html'"></input>

I can get that to work with a normal page with no frames, but i cant figure out how to get it to work with my iframe (and the iframe is named "center" so i dont quite know what im doing wrong)
help would be greatly appreciated.

10-09-2005, 04:58 PM
nevermind.. i fugured it out myself... it was "parent.right.center.location='home.html'"

10-09-2005, 05:12 PM
Ok, new question... (and i dont think ill be able to figure this one out, but...)
how do i change 2 things with 1 mouseclick on a button? i want the iframe to change as well as a bit of text in a text box in the main frame (the one with the buttons), is there any way to do this?

10-09-2005, 08:27 PM
Seperate multiple Javascript statements with a semicolon (;). You can put as many as you like in one event handler.