How to do this in a new window?
<pre><code>location.href = "/search.php?key=" + encodeURIComponent(key) + "&amp;type=" + type;
</code></pre>

<p>I want to reserve the original window ,how to do it in javascript?</p>
