"mgandra" <ma*********@hotmail.com> escreveu na mensagem
news:76**************************@posting.google.c om...
What is best way to find browser screen width using javascript that is
compatible with all types of browsers.
Javascript as a property that tell us the user screen resolution (not the
browser´s) If is that, you wish to acomplish just do as follow:
1 - create an input the HTML body
<body>
<input size="50" name="watheveryouwish">
<input type="button" value="Resolution" onclick="dofunction()">
2- create a script with function to capture screen resolution
<script type="text/javascript">
width=screen.width
height=screen.height
function dofunction()
{
watheveryouwish.value="You´re screen resolution is " +width+"*"+height
}
</script>