|
-
Jan 28th, 2002, 06:19 AM
#1
Thread Starter
Fanatic Member
Stupid simple HTML question
Stupid Question really:
I need to open 2 different pages into 2 different frames on clicking on a button... For the life of me I can't remeber how to do it.. I think that age is catching up with me.. (or I need more coffee)
I have 2 frames : topframe and mainframe and I currently make the topframe change on the button click .. but I need to change the information in mainframe too.
Cheers for your help.. I'll now go n book myself into the OAP home...
Chris
-
Jan 28th, 2002, 08:24 AM
#2
PowerPoster
hi
I posted this sometime back, dont know if it was you or whether it worked.
but here it goes again
Code:
function CallMe()
{
top.topframe.location.href = "page1.htm";
top.mainframe.location.href ="page2.htm";
}
//some where in the body
<input type=button value="Click me" onclick="javascript:CallMe();">
Hope this helps.
-
Jan 28th, 2002, 10:04 AM
#3
Thread Starter
Fanatic Member
Yup that'll do the job thanks veryjonny.. 
Thats just what I needed 
Cheers
Chris
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|