Greasemonkey Button Click Handler Not Working?
So, I have this script that will grab the links off of the table on THIS page (the 'x' are links on a logged in users page)... So I'm trying to use a popup loop thing that Brock he
Solution 1:
You're setting the id of your div to the same as your button which is invalid. And your trying to add the event listener to an undefined object. DOM elements don't show up automatically as JS variables. You'd have to var checkButton = document.getElementById("checkButton");
before you set the event listener.
Post a Comment for "Greasemonkey Button Click Handler Not Working?"