sayhello is executed when the call to addEventlistener is executed. You need to supply a function pointer ...

Am 12.07.2012 19:02, schrieb MonkeyMargie:

I've tried this:
var elmLink = document.getElementById('MyFieldName');
elmLink.addEventListener("click", sayhello('world'), true);
but it seems to execute only when the page is loaded, not when I click on the field. I've tried other actions such as 'mousemove', 'change', etc., but nothing works. Help!

--
You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To view this discussion on the web visit https://groups.google.com/d/msg/greasemonkey-users/-/-fc1MDcHqmwJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en.


--
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to