User: Markhurd/common.js
(Ensure error to load script...) |
m (Not quite so bad an error...) |
||
Line 2: | Line 2: | ||
addOnloadHook(function () { | addOnloadHook(function () { | ||
alert('Got here | alert('Got here 3.'); | ||
if(wgCanonicalSpecialPageName == 'ConfirmAccounts') | if(wgCanonicalSpecialPageName == 'ConfirmAccounts') | ||
{ | { | ||
alert('and here | alert('and here 3.'); | ||
debug. | debug.breaker(); | ||
var ss = $('submitSpam'); | var ss = $('submitSpam'); | ||
alert(ss); | alert(ss); | ||
alert(ss.id); | alert(ss.id); | ||
alert(ss()); | alert(ss()); | ||
addClickHandler(ss,function() { | addClickHandler(ss, function() { | ||
alert('here too.'); | alert('here too.'); | ||
document.getElementById('wpComment').style.display='none'; | document.getElementById('wpComment').style.display='none'; |
Revision as of 07:00, 20 April 2013
// when id="submitSpam" onclick="document.getElementById('wpComment').style.display='none';form.elements[11].focus()"
addOnloadHook(function () {
alert('Got here 3.');
if(wgCanonicalSpecialPageName == 'ConfirmAccounts')
{
alert('and here 3.');
debug.breaker();
var ss = $('submitSpam');
alert(ss);
alert(ss.id);
alert(ss());
addClickHandler(ss, function() {
alert('here too.');
document.getElementById('wpComment').style.display='none';
form.elements[11].focus();
});
};
});