jQuery.isWindow()
Determine whether the argument is a window.
jQuery.isWindow(obj)🡢 boolean
obj
| PlainObject | Object to test whether or not it is a window. |
Note: This API has been deprecated in jQuery 3.3; if you need this function, reimplement it by yourself:
This is used in a number of places in jQuery to determine if we're operating against a browser window (such as the current window or an iframe).
Finds out if the parameter is a window.
JS
Is 'window' a window? <b></b>
HTML
$("b").append("" + $.isWindow(window));
DEMO