Hi

  I do not know what is your problem, and I can not repeat your
problem on my firefox 3.0 beta2, maybe it is only a problem for event
sequence in firefox 2.0, try to fire the click in the window.onload
event, maybe it can fix

On Jan 6, 8:05 pm, "七星海" <[EMAIL PROTECTED]> wrote:
> using
> Prototype-version: 1.6.0
> Firefox: 2.0.0.11
> winXP
>
> Code:
> <body>
>         <div id="btnTestDiv"><input type="button" name="test" value="test"
> id="btnTest" /></div>
> </body>
> <script>
> $("btnTestDiv").observe( "click", function(e){
>
>                 alert( this.nodeName + " | "+ e.target.nodeName );
>
> } );
>
> $("btnTest").click();
>   ////first alert result: DIV | #document
>
> $("btnTest").click();
> ////second alert result: DIV | INPUT
>
> </script>
>
> Is this a problem? I think the "first alert result" is the same as the
> "second alert result".
>
> Thank you!
>
> Aimin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to