Forum:Global.js not working

Look here: And here: 16:05, March 6, 2011 (UTC)


 * Use this instead:

 function Monospace { if(wgAction == 'edit' || wgAction == 'submit') {       document.getElementById('wpTextbox1').style.fontFamily="monospace"; } }

addOnloadHook(Monospace);
 * By the way, that code won't work on wikis you've founded. wgAction is always edit on wikis you've founded, for every page.

TYVM! Is wikia blocking "window.onload"-thingy? -- 16:34, March 6, 2011 (UTC)


 * Something like that. They use window.onload to call all the functions in addOnloadHook, so they're doing pretty much the same thing.


 * M'kay 18:05, March 6, 2011 (UTC)