Difference between revisions of "User:ZeroOne/monobook.js"

From NetHackWiki
Jump to navigation Jump to search
m (addOnloadHook)
m
Line 1: Line 1:
 
addOnloadHook(
 
addOnloadHook(
  var stuff = document.getElementById('foobar').getAttribute('alt');
+
  function() {
  alert(stuff);
+
    var stuff = document.getElementById('foobar').getAttribute('alt');
 +
    alert(stuff);
 +
  }
 
);
 
);

Revision as of 16:19, 30 January 2010

addOnloadHook(
  function() {
    var stuff = document.getElementById('foobar').getAttribute('alt');
    alert(stuff);
  }
);