Difference between revisions of "MediaWiki:Common.js"
From Lewis Consultancy Wiki
Jump to navigationJump to search (Created page with "→Any JavaScript here will be loaded for all users on every page load.: $(function( $ ) { $( '#mw-content-text' ).on( 'click', '.newwin > a', function( e ) { var other...") |
(No difference)
|
Latest revision as of 14:42, 13 July 2017
/* Any JavaScript here will be loaded for all users on every page load. */ $(function( $ ) { $( '#mw-content-text' ).on( 'click', '.newwin > a', function( e ) { var otherWindow = window.open(); otherWindow.opener = null; otherWindow.location = this; return false; } ); } );