Hola necesito mandar el ancho de la pantalla a php y lo hago con el siguiente script, en firefox no da problemas, pero en el celular no redirecciona y el problema esta en el valor que envio, si quito esto '?anchoscr=" + screen.width' si hace la redireccion
Código:
<html>
<head>
<script>
function redireccionar(){
if(screen.width>=800){
location.href="http://www.miweb.cl/movil/movil.php";
}else{
location.href="http://www.miweb.cl/movil/sitio/web_mov.php?anchoscr=" + screen.width;
}
}
</script>
</head>
<body onLoad="redireccionar()">
</body>
</html>