HTML Screen width Property

The HTML Screen width property returns the total width of the user’s screen.

Syntax

Following is the syntax −

screen.width

Example

Let us see an example of HTML Screen width Property −




HTML screen width Property

Output

Click on “Show Screen Width” button to display total width of user’s screen −

Updated on: 2019-09-24T11:42:48+05:30

375 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements