The page I'm working on has a link inside a span like this:
<span class="pagination-stuff">
<a class="pagination-stuff-next-page"
onclick="resetPage.startAt(50); return false;">
There are several of them.
What I need to do is to run my function AFTER that resetPage function,
so I figured I could add an event listener to the span element like
this:
function myLittleFunction() {
// do my changes to the page
spanElement.addEventListener("click", myLittleFunction(), false);
}
This doesn't work. What happens is that when the script is executed,
it stalls when it tries to add the event listener, and I have to kill
the browser (I take it to a field behind the house).
What am I doing wrong?
--
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.