open window without titlebar 
<p>When the link is clicked it opens a new window:</p>

<pre><code>&lt;html&gt;
&lt;body&gt;

&lt;script type="text/javascript"&gt;
   function open_new_window(URL)
   {
   NewWindow = window.open(URL,"_blank","toolbar=no,menubar=0,status=0,copyhistory=0,scrollbars=yes,resizable=1,location=0,Width=1500,Height=760") ;
   NewWindow.location = URL;
   }
 &lt;/script&gt;
&lt;a href="#" onClick="open_new_window('http://www.google.com');"&gt;google search&lt;/a&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>but how do I make that window small and make it appear without a titlebar?</p>

<p>After the window is opened, when the user clicks outside the window the window must be automatically closed. How can I do that?</p>
