Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
(Created page with "→Any JavaScript here will be loaded for all users on every page load.: $('#randompage').click(function(){ var URL = $('a', this).attr('href'); console.log(URL);...") |
|||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
− | + | ||
− | var URL = $('a', | + | var URL = $('a', '#randompage').attr('href'); |
console.log(URL); | console.log(URL); | ||
− | |||
− |
Revision as of 08:20, 9 June 2021
/* Any JavaScript here will be loaded for all users on every page load. */ var URL = $('a', '#randompage').attr('href'); console.log(URL);