Javascript and frames

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

    Javascript and frames

    How to open existing page in the mainFrame.

    My start page has 4 frames and on the left side are menu links in table,
    with some effects .

    Like:
    <td height="23" align="center" valign="center" bordercolor="#6 66666"
    bgcolor="#E1E1E 1" style="cursor:h and" onclick="window .location='page 1.html'"
    onmouseover="bg Color='#FFFFCC' " onmouseout="bgC olor='#E1E1E1'" >

    <a href="page1.htm l" target="mainFra me" class="tditem"> Search</a>

    </td>

    If i use this code the page is loaded into same page and not in mainFrame.

    I tryed with this :
    onclick="parent .mainFrame='pag e1.html'"

    but there is no effect...

    Thanx in advance


  • Vjekoslav Begovic

    #2
    Re: Javascript and frames

    Can't you just remove onclick event handler?

    Or, if you must, you can put this:

    onclick="parent .mainFrame.loca tion='whatever. htm'"

    "Atz" <mail@mail.co m> wrote in message news:bg3dcs$d17 $1@ls219.htnet. hr...[color=blue]
    > How to open existing page in the mainFrame.
    >
    > My start page has 4 frames and on the left side are menu links in table,
    > with some effects .
    >
    > Like:
    > <td height="23" align="center" valign="center" bordercolor="#6 66666"
    > bgcolor="#E1E1E 1" style="cursor:h and"[/color]
    onclick="window .location='page 1.html'"[color=blue]
    > onmouseover="bg Color='#FFFFCC' " onmouseout="bgC olor='#E1E1E1'" >
    >
    > <a href="page1.htm l" target="mainFra me" class="tditem"> Search</a>
    >
    > </td>
    >
    > If i use this code the page is loaded into same page and not in mainFrame.
    >
    > I tryed with this :
    > onclick="parent .mainFrame='pag e1.html'"
    >
    > but there is no effect...
    >
    > Thanx in advance
    >
    >[/color]


    Comment

    Working...