User: Markhurd/common.js
< User:Markhurd (Canonical name is ConfirmAccounts) |
(More debugging...) |
||
Line 2: | Line 2: | ||
addOnloadHook(function () { | addOnloadHook(function () { | ||
alert('Got here.'); | |||
if(wgCanonicalSpecialPageName == 'ConfirmAccounts') | if(wgCanonicalSpecialPageName == 'ConfirmAccounts') | ||
$('.submitSpam').click(function() { | { | ||
alert('and here.'); | |||
var ss = $('.submitSpam'); | |||
alert(ss); | |||
ss.click(function() { | |||
alert('here too.'); | |||
document.getElementById('wpComment').style.display='none'; | document.getElementById('wpComment').style.display='none'; | ||
form.elements[11].focus(); | form.elements[11].focus(); | ||
}); | }); | ||
}; | |||
}); | }); |
Revision as of 06:39, 20 April 2013
// when id="submitSpam" onclick="document.getElementById('wpComment').style.display='none';form.elements[11].focus()"
addOnloadHook(function () {
alert('Got here.');
if(wgCanonicalSpecialPageName == 'ConfirmAccounts')
{
alert('and here.');
var ss = $('.submitSpam');
alert(ss);
ss.click(function() {
alert('here too.');
document.getElementById('wpComment').style.display='none';
form.elements[11].focus();
});
};
});