MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */ $(function { });

$('img').on('click', function(e){	if( this !== e.target ) alert( 'Class is '+ $(e.target).attr('class') ); });