javascript frames works netscape not internet explorer

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

    javascript frames works netscape not internet explorer

    I have a page with two frames, 'header' and 'main'. The following
    code works in Netscape, but in Internet Explorer. The second bgColor
    line produces an error:

    function test(){
    top.frames.head er.document.bgC olor='white'; //works fine
    top.frames.main .document.bgCol or='white'; //fails
    }

    Thanks in advance.
  • Martin Walke

    #2
    Re: javascript frames works netscape not internet explorer

    Hi Randy,

    It works for me ;-). Just make sure that your frames in your frameset file
    are named as you have specified i.e. header and main.

    Martin

    "Randy Weber" <randyweb@yahoo .com> wrote in message
    news:8d410073.0 410260743.15d1f b23@posting.goo gle.com...[color=blue]
    > I have a page with two frames, 'header' and 'main'. The following
    > code works in Netscape, but in Internet Explorer. The second bgColor
    > line produces an error:
    >
    > function test(){
    > top.frames.head er.document.bgC olor='white'; //works fine
    > top.frames.main .document.bgCol or='white'; //fails
    > }
    >
    > Thanks in advance.[/color]


    Comment

    Working...