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