open new windows in javascript
<p>hi how to use javascriptscript to open a new window and then closing the current window..</p>

<p>currently, i can only open a new window, however my current window is still left open.</p>

<p>Code:</p>

<pre><code>function newfunction()
        {
            window.open("index.html", "myWindow", "status = 1, height = 300, width = 300, resizable = 0");
        }   
</code></pre>
