jQuery.isWindow() method
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 Methods