Everything must go
Man, the internet is a tough crowd. Seriously, who uses the back button? Hehe, a broken back button was not one of the things I was testing for when attempting to make my
SI_clearAbsolutes() function work with user resized text. I’m certainly glad someone noticed before the script was put to use in a production environment.
But no worries, I managed to fix the broken back button issue by using a manner of
location.replace() on the dynamically generated
iframe. Oddly, this only works in Firefox when called in the global namespace and not when inside a function. Fortunately this requires only slight modification to the way the script is incorporated into the XHTML.
head it is now placed immediately before the closing
body tag (something Scott Schiller recently suggested for IFR). This actually has two additional benefits (besides giving FireFox users their back button, um…back). The absolutely positioned elements are cleared earlier, before
onload and possibly before the browser’s initial page draw. And it doesn’t overwrite an existing
onload handler. Sweet.
Enough talk, have at these samples
Oh and curiously missing from the previous post was packaged source. Just unzip, configure the
script tag immediately before the closing
body tag of any document with absolutes to be cleared. Done.