2011/11/08

How to get screen size like height and width

<Script language = JavaScript>

             UserWidth = window.screen.width
             UserHeight = window.screen.height
             UserWidth = "Screen Width = " + UserWidth
             UserHeight = " Screen Height = " + UserHeight
             alert(UserWidth + UserHeight)
</Script>

0 comments:

Post a Comment