JavaScript function close() {}
<p>I've created a function in JS named close </p>

<pre><code>function close() {...}
</code></pre>

<p>and have an onclick call </p>

<pre><code>onclick="close()"
</code></pre>

<p>but it won't work. If I rename the function to whatever, it works. Could it be that it is forbidden to use a function in JS named close() ?</p>