We set the onresize handler for the window to call a function when the window is resized 3. For Explorer, we simply resize the image to the new window dimensions. For Navigator, we reload the page, resulting in the positioned element and the image being re-created, giving the illusion of image scaling. In developing this short script, we ran into an unbelievable amount of small problems related to browser quirks. Explorer waits until the BODY tag appears, since the dimensions are stored in properties of document.body .
Navigator requires the element to be created first on the page.
Advice Use this technique sparingly when dealing with Navigator. Preferably, keep the image's positioned element as the only positioned element on your page. For Explorer-only pages, the technique has no problems. Use this technique in short or windowed pages, like our example. Long pages, like the one you are reading, are, of course, not suited for this effect.