Categories

jQuery.isWindow()

Categories: Utilities

jQuery.isWindow( obj )Returns: boolean

Description: Determine whether the argument is a window.

  • jQuery.isWindow( obj )

    version added: 1.0

    obj   Object to test whether or not it is a window.

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.

    HTML:
    Is 'window' a window? <b></b>
    Code:
    $("b").append( "" + $.isWindow(window) );