Post 6 made on Monday September 6, 2010 at 19:54 |
Barry Gordon Founding Member |
Joined: Posts: | August 2001 2,157 |
|
|
JohnMAck, you are absolutely correct. But the reason is fairly obvious (at least to me after I thought about it). If they attempted to execute an onEntry defined in the body of the page script before they executed the page script it would not yet be defined!! Ergo they must execute the pagescript to establish the definition and then they can execute it.
Now I guess they can recognize that they just defined the onEnytry function in the middle of the page script and then immediately execute it but that would be less elegant, maybe more to somes liking but less elegant.
|
|
|