Skip to content

sud.onWindowResize ​

JS
    sud.onWindowResize(function callback)

Listens for the window resize event.

Parameters

  • function callback: The callback function for the window resize event.

Parameters of the callback function

  • Object res: Returns the window size after the change.

Properties of res:

PropertyTypeDescription
windowWidthnumberThe window width after the change, in px
windowHeightnumberThe window height after the change, in px