MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */
/* Hacking BOOMR */
if (window['addEventListener']) {
    window.addEventListener('load', function(e){
      e.stopPropagation();
      e.preventDefault();
}, false);
} else if (window['attachEvent']) {
    window.attachEvent('onload', function(e){
      e.stopPropagation();
      e.preventDefault();
});
}


/** Test if an element has a certain class
/** Test if an element has a certain class
152

edits