JavaScript and Iframes

admin

Administrator
Staff member
Hello, perhaps someone can help me with my situation. I have a product website. When you click on one of the links it opens in the iframe and the rest of the website remains the same. Simple. Now, when I load the webpage for the first time, the iframe displays an image. Ok, here's the problem. When you are on this site and you click on reload the page containing the iframe reloads but the iframe itself does not reload. I tried to remedy this by writting the following code:

<body onLoad="document.float.location.href='productos/main.html';">

where float = the name of the iframe and the main.html is the location of the image.

Now this solution works fine in Internet Explorer but not in Netscape and not in Mozilla. Can someone please help me?
Much appreciated, Orly
 
Back
Top