User: Markhurd/common.js

< User:Markhurd
(Ensure error to load script...)
m (Not quite so bad an error...)
Line 2: Line 2:


addOnloadHook(function () {
addOnloadHook(function () {
   alert('Got here 2.');
   alert('Got here 3.');
   if(wgCanonicalSpecialPageName == 'ConfirmAccounts')
   if(wgCanonicalSpecialPageName == 'ConfirmAccounts')
   {
   {
     alert('and here 2.');
     alert('and here 3.');
     debug.break();
     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();
        });
   };
 });
Discuss this page