Jump to content

[javascript] does not work IE frames


Recommended Posts

Hi

I have a problem with javascript and frames in IE.

I want to load the page with the script in one of the 2 frames.

The problem is that IE put about:blank in that frame instead of my page :(

The strange thing is, that I don't have this problem in Firefox :blink:

One other thing, the problem was created when I made the CloseMenu function

<script type="text/javascript" language="JavaScript">
function ChangeMenu(menuname)
{
   if(parent.wnavi.document.all(menuname).style.display=='none')
   {
       parent.wnavi.document.all(menuname).style.display=''
       this.CloseMenu(menuname)
   }
   else
   {
       parent.wnavi.document.all(menuname).style.display='none'
   }
}
function CloseMenu(menuname)
{
   var menulist=new Array(3)
   menulist[0]="submenu1"
   menulist[1]="submenu2"
   menulist[2]="submenu3"

   for (i = 0; i <= menulist.length; i++)
   {
       if((menuname)!=menulist[i]){parent.wnavi.document.all(menulist[i]).style.display='none'}
   }
}
</script>

Does anyone know what the problem is, and how to resolve this :}

you can find the files at http://members.home.nl/van.duijvendijk/ieprobleem/

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...