jQuery.isWindow()Method

jQuery 杂项方法jQuery Miscellaneous Methods

Examples

Determine whether the passed parameter is a window object

windowIs 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 parameter is a window.


Syntax

$.isWindow( object )

Parameters Description
object Any type Any value to be checked.


jQuery 杂项方法jQuery Miscellaneous Methods

Other Extensions