Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

jQuery.isWindow() method

jQuery.isWindow() method

jQuery Miscellaneous MethodsjQuery Miscellaneous Methods

Example

Determine whether the passed argument is a window object

window

Is it a window? <

b

b

<script$(function(){$("b" )>

.

append

(

"

"

  • $.

isWindow

(

window

)

)

;

}

)

script

Try it »


Definition and Usage

The $.isWindow() function is used to determine whether the specified argument is a window.


Syntax

$

.isWindow( object )

Parameters Description
object Any type: The arbitrary value to be checked.

jQuery Miscellaneous MethodsjQuery Miscellaneous Methods