jQuery isWindow() example

jQuery isWindow() function is used to determine whether the argument is a window.


jQuery.isWindow( obj )
obj - Object to test whether or not it is a window.


Finds out if the parameter is a window.
<!doctype html>
<html lang="en">

    <meta charset="utf-8">
    <title>jQuery.isWindow demo</title>
    <script src="https://code.jquery.com/jquery-3.4.1.js"></script>


    Is 'window' a window? <b></b>

        $("b").append("" + $.isWindow(window));


Try it Yourself - Copy paste code in Online HTML Editor to see the result
Is 'window' a window? true


Free Spring Boot Tutorial - 5 Hours Full Course

Watch this course on YouTube at Spring Boot Tutorial | Fee 5 Hours Full Course