Path: csiph.com!usenet.pasdenom.info!news.albasani.net!news.teledata-fn.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <6019389.DZK1vPGy3s@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Wed, 22 Aug 2012 10:48:04 +0200 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 33 NNTP-Posting-Date: 22 Aug 2012 10:48:05 CEST NNTP-Posting-Host: cacc3629.newsspool3.arcor-online.net X-Trace: DXC=FaEZlL\>kaK@Y=h<_c3PkHMcF=Q^Z^V3H4Fo<]lROoRA8kF`GJc`^9KP1=A_hZ9PnK X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:15493 Andrew Poulos wrote: > On 22/08/2012 3:10 PM, Andrew Poulos wrote: >> I have some js like this >> >> var myFunction = function(e, elem) { >> e = e || window.event; >> // do other stuff >> }; >> >> and some HTML like this >> >> > usemap="#pnt"> >> >> > onclick="myFunction(e, 'tmp'); return false;"> >> >> >> I need the 'area' to pass the event to the function and some other >> parameters. When I try the above I get e is undefined. How do I get it >> to pass the event as well? > > Doh, I solved it. Care to tell how?¹ PointedEars ___________ ¹ There's a "stupid" question for you for a change. -- When all you know is jQuery, every problem looks $(olvable).