java script alert a message when user click on window
<p>I am working on a php site.I want to use java script code for alert message when user click on anywhere in window.i am using window.onclick=function name()</p>

<pre><code>function function name()
{
alert('message');

}
</code></pre>

<p>but it is not working.</p>
