cb
2000-05-23, 18:48
Hej Webforum!
Här kommer mitt första inlägg: Är det någon som vet hur ett script till netscape skall se ut för att en sidas innehåll skall laddas om varje gång man ändrar storleken på webbläsaren?
Jag har försökt med nedanstående script utan framgång:
if (navigator.appName=="Netscape" && parseInt(navigator.appVersion)==4) {
widthCheck = window.innerWidth
heightCheck = window.innerHeight
window.onResize = resizeFix
}
function resizeFix() {
if (widthCheck != window.innerWidth | | heightCheck != window.innerHeight)
document.location.href = document.location.href
}
Skulle vara väldigt tacksam för hjälp!
Med vänlig hälsning,
Christian
[Redigerat av cb den 23 maj 2000]
Här kommer mitt första inlägg: Är det någon som vet hur ett script till netscape skall se ut för att en sidas innehåll skall laddas om varje gång man ändrar storleken på webbläsaren?
Jag har försökt med nedanstående script utan framgång:
if (navigator.appName=="Netscape" && parseInt(navigator.appVersion)==4) {
widthCheck = window.innerWidth
heightCheck = window.innerHeight
window.onResize = resizeFix
}
function resizeFix() {
if (widthCheck != window.innerWidth | | heightCheck != window.innerHeight)
document.location.href = document.location.href
}
Skulle vara väldigt tacksam för hjälp!
Med vänlig hälsning,
Christian
[Redigerat av cb den 23 maj 2000]