MediaWiki:Example.js

console.log("load test js?"); if($("#Longer_examples").length){ console.log("yes: test js loaded"); Longer_examples.onclick=function{alert('hi')}; } else { console.log("no: skipped test js"); }