<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1023220" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1023220</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/passing-arguments-dynamic-event-handlers#comment-1142785</link>
    <description> &lt;p&gt;when assigning the event handler you cannot pass parameter try it like this&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;document.getElementById(&amp;#039;foo&amp;#039;).onclick = bar;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;yes depending on the browser you can get who called it&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;function bar(eventparam)&lt;br /&gt;{&lt;br /&gt; if(!eventparam)&lt;br /&gt; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; eventparam=window.event;&amp;nbsp; // for IE&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp; callername = eventparam.target.name;&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;this code is not tested bt should help you start&lt;/p&gt;
 </description>
     <pubDate>Tue, 16 Dec 2003 15:20:16 +0000</pubDate>
 <dc:creator>druagord</dc:creator>
 <guid isPermaLink="false">comment 1142785 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
