Should you specify the parent object in javascript when using the alert method?
<p>I'm learning javascript and noticed the following two syntaxes achieve the same end goal:</p>

<pre><code>window.alert("chitty chitty bang bang!");
alert("chitty chitty bang bang!");
</code></pre>

<p>Also, why doesn't this syntax work?</p>

<pre><code>window.document.alert("chitty chitty bang bang!");
</code></pre>
