How to Capture users Screen Resolution, window resolution, monitor resolution using javascript
Example code for Determine screen resolution:
<script>
var screen_width = screen.width;
var screen_height = screen.height;
</script>
<BODY MARGINWIDTH="0" MARGINHEIGHT="0" SCROLL="NO" onLoad="
if(isNS4) {
available_width=innerWidth;
available_height=innerHeight;
preLoad();
} else if(isIE4) {
available_width=document.body.clientWidth;
preLoad();
}"
onResize="history.go(0)">
Example code for Determine screen resolution:
<script>
var screen_width = screen.width;
var screen_height = screen.height;
</script>
<BODY MARGINWIDTH="0" MARGINHEIGHT="0" SCROLL="NO" onLoad="
if(isNS4) {
available_width=innerWidth;
available_height=innerHeight;
preLoad();
} else if(isIE4) {
available_width=document.body.clientWidth;
preLoad();
}"
onResize="history.go(0)">
Aucun commentaire:
Enregistrer un commentaire