Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] looping through nodeList
- From: apwebdesign at yahoo.com (Anthony Ettinger)
- Subject: [Javascript] looping through nodeList
- Date: Tue Oct 18 16:15:49 2005
--- Mike Dougherty <mdougherty@xxxxxxx> wrote:
> It has nothing to do with parameters
>
> When you use the window.onload=Name(); - you are
> assigning the results of having executed the Name
> function to the window.onload method.
>
> When you use the window.onload=Name; - you are
> assigning the function called Name to the
> window.onload method.
How should I call function names then?
If I run window.onload=Foo; it works,
if I have:
window.onload=Bar;
function Bar()
{
Foo;
}
Foo does not get called. It only works in the 2nd
instance if I call it as Foo();
What's going on here?
Anthony Ettinger
ph: (408) 656-2473
web: http://www.apwebdesign.com
- Follow-Ups:
- [Javascript] looping through nodeList
- From: Paul Novitski
- [Javascript] looping through nodeList
- References:
- [Javascript] looping through nodeList
- From: Mike Dougherty
- [Javascript] looping through nodeList
- Prev by Date: [Javascript] looping through nodeList
- Next by Date: [Javascript] looping through nodeList
- Previous by thread: [Javascript] looping through nodeList
- Next by thread: [Javascript] looping through nodeList
- Index(es):