javascript frames works netscape not internet explorer

Discussion in 'Javascript' started by Randy Weber, Oct 26, 2004.

  1. Randy Weber

    Randy Weber Guest

    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.header.document.bgColor='white'; //works fine
    top.frames.main.document.bgColor='white'; //fails
    }

    Thanks in advance.
     
    Randy Weber, Oct 26, 2004
    #1
    1. Advertisements

  2. Randy Weber

    Martin Walke Guest

    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
     
    Martin Walke, Oct 28, 2004
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.