Hallo David!
Dein Tip ist gut.
Ich möchte jedoch eine kleine Berechtigung hinzufügen:
(Ich weiss nicht woher du den Script hast, aber richtig sieht es so aus:mit dem © Hinweis)
Grüße
Thomas
===cut===
/**
* resize.js 0.3 970811
* by gary smith
* js component for "reloading page onResize"
*/
if(!window.saveInnerWidth) {
window.onresize = resize;
window.saveInnerWidth = window.innerWidth;
window.saveInnerHeight = window.innerHeight;
}
function resize() {
if (saveInnerWidth < window.innerWidth
saveInnerWidth > window.innerWidth
saveInnerHeight > window.innerHeight
saveInnerHeight < window.innerHeight )
{
window.history.go(0);
}
}
==== cut ===