using jquery to get dom elements name
<p>Is there a way to retrieve a elements name as a string that is also cross browser compatible.</p>

<p>for example I have an event that I look at the target and I want to just get the name of it. So for example I click on a a tag and the eventListener returns the event.</p>

<pre><code>myEventListener: function(event){
  strName = event.target
}
</code></pre>

<p>The above gives me the target but what I want is just a value of the name of the a tag. 
so an a tag would give me a string result of "a"
so something like this pseudo code.</p>

<pre><code> myEventListener: function(event){
  strName = event.target.name
}
</code></pre>
