addListener method
Adds the callback function to the list of listeners for the MediaQueryList object. The function is called whenever the evaluation of the media query changes.
![]() |
Syntax
var retval = MediaQueryList.addListener(listener);Parameters
- listener [in]
-
The event handler function to associate with the event.
Return value
Type: HRESULT
This method can return one of these values.
- S_OK
Standards information
- CSSOM View Module, Section 4.1
See also
Show:
