systemXDPI property (screen)
Returns the number of dots per inch (DPI) of the display screen along the horizontal (x) axis at normal zoom level.
Note: The systemXDPI property is supported in Internet Explorer from version 8.The user has the ability to zoom in or out a web page (CTRL and +, CTRL and -). The current number of dots per inch depends on the magnification of the web page. The value of the systemXDPI and systemYDPI properties are independent from the magnification of the web page. If you need the number of dots per inch depending on the current magnification of the web page, use the deviceXDPI and deviceYDPI properties.
You can find the related objects in the Supported by objects section below.
This property is read-only.
Integer that represents the horizontal DPI. Typically 96 dots per inch.
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the systemXDPI property:
Did you find this example helpful?
User Contributed Comments