orient property (event)
Retrieves whether the visibility of the horizontal or vertical scrollbar changed when the overflowchanged event occurred.
Use the horizontalOverflow and verticalOverflow properties to retrieve whether the contents of the event target element overflow or not.
You can find the related objects in the Supported by objects section below.
This property is read-only.
Integer that identifies the scrollbars whose visibility has changed.
Predefined constants are available for the possible values of this property, in the scope of the OverflowEvent interface. You can use them directly through the OverflowEvent interface (OverflowEvent.HORIZONTAL) or through an instance of the event object. For further details, please see the page for the OverflowEvent interface.
The value can be one of the following values (the value of a predefined constant appears in parentheses after the constant):
|The visibility of the vertical scrollbar has changed. It is a bug in Google Chrome and Safari, the HORIZONTAL and VERTICAL constants are defined in reverse!|
|The visibility of the horizontal scrollbar has changed. It is a bug in Google Chrome and Safari, the HORIZONTAL and VERTICAL constants are defined in reverse!|
|The visibility of both the horizontal and vertical scrollbars has changed.|
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the orient property:
Did you find this example helpful?
User Contributed Comments