Rabu, 24 Agustus 2011

Mendeteksi Resolusi Layar Monitor

Kita bisa mendeteksi resolusi layar monitor kita dengan javascript, berikut adalah contoh kode programnya :
<script>
var width=screen.width;
var height=screen.height;
document.write("Your Screen Resolution "+width+"px x "+height+"px");
</script>

0 komentar:

Posting Komentar

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Justin Bieber, Gold Price in India