title: Check if event target is hyperlink
body: <p>I have a large div inside there which are smaller divs, achor tags and other elements.
  Each large div in my program is bound to "mousedown" event and inside the onMouseDown handler, I basically check the event.target.</p>
  
  <p>If a user clicks on an items that is a hyper link, I want to check if event.target was hyperlink and then navigate to that link if event.target was a hyperlink. How can that be done?</p>
  
  <p>Here's the structure of the divsa and elements.</p>
  
  <pre><code>&lt;div class="camp-name"&gt;
      &lt;span class="btnCampaign"&gt;&lt;div class=""&gt;&lt;/div&gt;&lt;/span&gt;
      &lt;span class="campaign-name"&gt;
         &lt;a href="http://www.google.com"&gt;Some Link here&lt;/a&gt;
      &lt;/span&gt;
  &lt;/div&gt;
  &lt;div class="campaign-name-sub"&gt;
     &lt;span class="campaign-accountname"&gt;Some Text here&lt;/span&gt;
     &lt;span class="seprator"&gt;|&lt;/span&gt;
     &lt;span class="brandname"&gt;Some Text here&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>JS</p>
  
  <pre><code>var label = label.createElement("DIV");
  label.innerHMTL = src //src is the above html that is seen here
      Plugin.addEventListener(label, "mousedown", params.onMouseDown);
  
  
  Plugin.onMouseDown() = function(event) {
  var target = (event.currentTarget) ? event.currentTarget : event.srcElement;
          if (target.tagName.toLowerCase() === "a" &amp;&amp; target !== undefined) {
              console.log(target.href);
              Plugin.stopPropagation(event);
          }
  };
  </code></pre>