Difference between Window.prototype.confirm and Window.confirm
<p>What is the difference between <code>Window.prototype.confirm</code> and <code>Window.confirm</code>?</p>

<p>I am working on a change request which says We need to have a title on confirm message box . I was just going through the code which pops up this confirm window.</p>

<p>In  a javascript there is a call to </p>

<pre><code>Window.prototype.confirm = function(arg){return false;}; 
</code></pre>

<p>which is responsible to pop up the confirm window</p>

<p>I searched in google there is a javascript function like window.confirm where we cant set title and we need to write some custom javascript function to do the same</p>

<p>So I am just wodering whether <code>Window.prototype.confirm</code> and <code>Window.confirm</code> are same and if not what is the difference?</p>
