how to prevent to calling another function in JS?
<pre><code>function datePicker(event)
{
//do something`enter code here`
}

document.onclick=function() {
//do something
}
</code></pre>

<p>When I call datePicker() function I want to prevent the calling second method .
How to do that ?</p>
