How to load an different frame using ONLOAD()

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jake_allen_no_spam

    #1

    How to load an different frame using ONLOAD()

    Hi All,

    I am working on a web page with frames, "menuFrame" on the left and
    "textFrame" on the right. When I load the menu on the left I would
    like to load the text with a default page on the right. Is there some
    kind of way to do this with an onload event in the menuFrame page?


    mymenu.html
    <body onload(window.l oad("mytext.htm l","textFrame") )>
    <a href="mypres1.h tml" target="textFra me"> George Washington </a>
    <br>
    <a href="mypres33. html" target="textFra me"> George Bush </a>
    <br>


    Thanks in advance for your help.
    Jake Allen

  • Grant Wagner

    #2
    Re: How to load an different frame using ONLOAD()

    "jake_allen_no_ spam" <jake_allen10@h otmail.com> wrote in message
    news:1104797022 .433284.100970@ f14g2000cwb.goo glegroups.com.. .[color=blue]
    > Hi All,
    >
    > I am working on a web page with frames, "menuFrame" on the left and
    > "textFrame" on the right. When I load the menu on the left I would
    > like to load the text with a default page on the right. Is there some
    > kind of way to do this with an onload event in the menuFrame page?
    >
    >
    > mymenu.html
    > <body onload(window.l oad("mytext.htm l","textFrame") )>[/color]

    <body onload="top.fra mes['textFrame'].location.href= 'mytext.html';" >

    (assuming -textFrame- is one frame down from the top)

    <body onload="parent. frames['textFrame'].location.href= 'mytext.html';" >

    (assuming -textFrame- is a sibling of the current frame)

    --
    Grant Wagner <gwagner@agrico reunited.com>
    comp.lang.javas cript FAQ - http://jibbering.com/faq


    Comment

    Working...