jQuery.isWindow()

Determine whether the argument is a window.

jQuery.isWindow(obj)🡢 boolean

obj PlainObjectObject 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

Looking for a Web Developer?

👋

Hi! I'm Basti, author of this site. If you are looking for a web developer with 15+ years of experience, holla at me!

Be it the good 'ol jQuery, vanilla JS or modern frameworks like Vue and Svelte, front- or backend, I can help you.

Just write me at jobs@jqapi.com :)