O
one.1more
Hello,
I have the following code but its not working. i want my site to be
accessible only if the visitors resolution is 1024 x 768 or higher and
only if they are using internet explorer. the version is not important
because i think most people have 5.5+
When i visit my my site with 800 x600 either by using firefox or IE,
it redirects me to useie.htm. but if i use firefox with 1024 x 768, it
doesnt redirect me to useie.htm. why? can someone fix my code?
Code:
<script language="javascript" type="text/javascript">
<!--
browserName = navigator.appName;
if ((screen.width<=1024) && (screen.height<=768)&& (browserName!
="Microsoft Internet Explorer"))
{
window.location="http://mysite.com/useie.htm;
}
//-->
</script>
(i also tried putting var in front of browserName when its first
declared, it didnt work that way either)
I have the following code but its not working. i want my site to be
accessible only if the visitors resolution is 1024 x 768 or higher and
only if they are using internet explorer. the version is not important
because i think most people have 5.5+
When i visit my my site with 800 x600 either by using firefox or IE,
it redirects me to useie.htm. but if i use firefox with 1024 x 768, it
doesnt redirect me to useie.htm. why? can someone fix my code?
Code:
<script language="javascript" type="text/javascript">
<!--
browserName = navigator.appName;
if ((screen.width<=1024) && (screen.height<=768)&& (browserName!
="Microsoft Internet Explorer"))
{
window.location="http://mysite.com/useie.htm;
}
//-->
</script>
(i also tried putting var in front of browserName when its first
declared, it didnt work that way either)