getWidth() - Media Method

The getWidth() method returns the horizontal size in pixels.

Syntax

<object name>.getWidth();

Parameters

This function has no parameters.

Example

if (image.getWidth() == 480)

{...