get height and width of screen

Total Post:2


 1588  View(s)
Rate this:

Hi Everyone!

I want to set div width and height according screen resolution in html. How to get screen width and height using JavaScript.

Thanks in advance

  1. Re: get height and width of screen

    Hi Nithersh!

    Used JavaScript for getting width and height of screen resolution. 

      document.write("Total Width: " + screen.width); 
      document.write("Screen Height: " + screen.height); 

      Modified On Mar-29-2018 06:28:06 AM


Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.