Results 1 to 3 of 3

Thread: Stupid simple HTML question

  1. #1

    Thread Starter
    Fanatic Member chrismitchell's Avatar
    Join Date
    Jan 2001
    Location
    With Hobbes in New Zealand
    Posts
    568

    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

  2. #2
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089

    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.

  3. #3

    Thread Starter
    Fanatic Member chrismitchell's Avatar
    Join Date
    Jan 2001
    Location
    With Hobbes in New Zealand
    Posts
    568
    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
  •  



Click Here to Expand Forum to Full Width