Javatpoint Logo
Javatpoint Logo

jQuery isWindow() method

The isWindow() method is used to test whether the passed argument is a window or not. This method returns a Boolean value. If it finds the passed value is a window, it returns true. Otherwise, it returns false.

Syntax

This method accepts a single parameter which is defined as follows -

obj - It specifies a object to test whether it is a window or not.

Let's understand the working of the isWindow() method using an illustration.

Example

It is a simple example of using the isWindow() method. In this example, we are using the isWindow() method to determine whether the passed values are window or not. Here, we are passing different values as an argument.

Test it Now

Output

After the execution of the above code, the output will be -

jQuery isWindow() method




Youtube For Videos Join Our Youtube Channel: Join Now

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA