The parent window doesn't work
<p>The following code is from 'JavaScript by Example Second Edition', It seems that   </p>

<pre><code>parent.window.moveTo(215, 0); // Move the parent window  
parent.window.resizeTo(400, 400); // Resize browser window
</code></pre>

<p>doesn't work. I use both IE 9.0 and FireFox 15.0 to test the code, and I get the same result.</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
    &lt;title&gt;Move a New Window&lt;/title&gt;
    &lt;script type="text/javascript"&gt;
        function directions() {
            winObj = window.open("myplace.html", "myplace",
          "width=200,height=300,resizable=no");
            winObj.moveTo(0, 0); // Move window to top left corner
            winObj.focus();
            parent.window.moveTo(215, 0); // Move the parent window
            parent.window.resizeTo(400, 400); // Resize browser window
        }
        function closeWindow() {
            winObj.close();
        }
    &lt;/script&gt;
&lt;/head&gt;
&lt;body bgcolor="lightblue"&gt;
    &lt;h2&gt;We've moved!&lt;/h2&gt;
    For directions to our new place,
    &lt;br /&gt;
    click the button
  &lt;form&gt;
      &lt;input type="button"
          value="Simple Directions"
          onclick="directions();"&gt;
      &lt;p&gt;When you are ready to close the window, click here&lt;/p&gt;
  &lt;/form&gt;
    &lt;a href="JavaScript:closeWindow()"&gt;Close the window&lt;/a&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
