how to get browser window object using java script or jQuery
<p>I would like to get window object of the already open window and I don't want to open a new window when expected window is closed.</p>

<p>I tried the following option:</p>

<pre><code>var windowObj = window.open('','windowName', '');
</code></pre>

<p>However it opens a new window when expected window is not present/closed.</p>

<p>Please suggest me something to get the window object using JavaScript or jQuery.</p>
