Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder2.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Mel Smith" Newsgroups: comp.lang.javascript Subject: Re: IE8 attachEvent problem Date: Mon, 21 Jan 2013 13:05:47 -0700 Lines: 32 Message-ID: References: <50fd7ab9$0$6562$9b4e6d93@newsspool4.arcor-online.net> X-Trace: individual.net 8uRe+EmSeVgMVLZm/gQLCgdPMZ1CMx8eJEhS2UOyRHFpXYnuqDgFC/6wRMVhNq5rAg Cancel-Lock: sha1:wCMRhWPYphSwe5aNsTIvOBM/5is= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: csiph.com comp.lang.javascript:18193 Evertjan said: > Methinks both should do fine, you test it: > > ================ > document.body.onload = 'alert("I`m loaded");' > ================ > > and > > ================ > function sureIam() { > alert("I`m loaded"); > }; > > document.body.onload = sureIam; > ================ > > Mind: no () in the latter. Hi Evertjan: How do I change my 'remember' code to make it an 'onload function call' and pass it the target and ID -- instead of a string. I'm getting more and more confused here :(. Thank you -Mel