jquery stopPropagation() and sending "event"?
<p><a href="http://jsbin.com/imager/2/edit" rel="nofollow"><strong>(jsbin)</strong></a></p>

<p>I created a table with a button inside.</p>

<p><img src="http://i.stack.imgur.com/x6GEF.jpg" alt="enter image description here"></p>

<p>The Table has <code>onclick</code> event and also the inside Button</p>

<p>But when Im pressing the button ,the event bubbles up to the table. ( and I get 2 alerts)</p>

<p>So I used  <code>ev.stopPropagation();</code></p>

<p>And its working. But in order for it to work , I had to do : </p>

<p>in html : </p>

<pre><code>&lt;input type='button' onclick='doWork(event);'/&gt;
</code></pre>

<p>in Js :</p>

<pre><code>function doWork(ev)
{
  ev.stopPropagation();
  alert('button');
}
</code></pre>

<ul>
<li>Is this the correct way ? </li>
<li><strong>Must</strong> I send the event ?  I know that different browsers uses differently the <code>event</code> .</li>
</ul>
