Re: <script> as handler for XML events
Chris Cross <[email protected]> Wed, 21 Jun 2006 11:58:21 -0400
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Message-ID | <[email protected]> |
smaug wrote: > So what is |this| in the <script> ? Is it |window|, |HTMLScriptElement| > or the currentTarget of the |event| or what? > A <script> with this line of code in Opera 8.5 returned true alert(this == window.top); so it looks like |this| is the main browser window in Opera. A similar test in NetFront reveals that |this| is the target of the event. Nothing like choice in the market, eh? ;-) What do you think |this| *should* be? chris