hi,
i have a problem i have been given some code using javascript to resize the screen to what resolution
the user wants.
<script language="JavaScript">
if (window.screen.width >= 1024) {
URL = "index1.html";
}
else if (window.screen.width >= 800) {
URL = "index.html";
}
else if (window.screen.width >= 640) {
URL = "index2.html";
}
location.href = URL;
</script>
but the problem is want happens when i first open the website if its 1024 resolution will it go index1.html
or will it go to index.html , i would'nt want it to go there if the screen resolution was at 1024 as i think it would show index.html
can anyone hellllp.
thanks
geniedon
index.html will it go to the
i have a problem i have been given some code using javascript to resize the screen to what resolution
the user wants.
<script language="JavaScript">
if (window.screen.width >= 1024) {
URL = "index1.html";
}
else if (window.screen.width >= 800) {
URL = "index.html";
}
else if (window.screen.width >= 640) {
URL = "index2.html";
}
location.href = URL;
</script>
but the problem is want happens when i first open the website if its 1024 resolution will it go index1.html
or will it go to index.html , i would'nt want it to go there if the screen resolution was at 1024 as i think it would show index.html
can anyone hellllp.
thanks
geniedon
index.html will it go to the