background
|
|
RiscOS
Risc OS Info
All you need to know about Risc OS and more.
More icon

Games
Ruffnecks Gaming Gaming for everyone
More

Tombstone
Tombstone Tuning Home of tuning, projects and fast cars and boats.
More
|
|
Up Image
Navigation
Search this Site
Enter your search terms

Site Breadcrumb - You are here
|
Taylor's Dynamic HTML Tutorial
Lesson 5

by Taylor

Page 3 — Netscape's Resizing Problem

If you're a Netscape user who has gone through this tutorial, at some point you might have resized your browser just to get a better look at things. Suddenly there was a horrible flash and all your wonderful positioning information was gone and your page looked not unlike jodi.org.

This is a known bug in Netscape 4.0. The solution to this problem? Well, the low-tech way would be to place a little reminder on your page that if Netscape users resize their browsers, they'll need to reload the page.

Or you could do it programmatically like thus:

    <script>
    
    if (document.layers) {
    
       window.onResize = reloadIt;
    
    }
    
    function reloadIt() {
    
      document.location = document.location;
    
    }
    
    </script>

This will work in most cases. (Occasionally, however, Netscape will be thrown into an endlessly repeating cycle of reloading the document.)

next page»