Javascript Function and Form Name conflict
<p>I have a javascript function that would not run and threw an error. It took about an hour to realize that my form had the same name as the function. It seemed odd that a form name would be in conflict with a function name, but I change the name anyway and everything worked fine. Does anyone know why this would even happen?</p>

<p>If you run this code it will fail, but if you change the form name it works, very strange.</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
&lt;script type="text/javascript"&gt;
function mytest(){alert("hello");}
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form name="mytest" &gt;&lt;/form&gt;
&lt;a  href="#" onClick="mytest();"&gt;Click Me&lt;/a&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>I am running this on IE6. What is strange to me is that one is Javascript code and the other is an attribute of HTML.</p>
