Difference between revisions of "MediaWiki:Common.js"

From mispar
Jump to: navigation, search
Line 2: Line 2:
  
  
console.log(window.location.href);
+
const re = /#(.*)$/;
 +
 
 +
found = re.exec(window.location.href);
 +
console.log(found);

Revision as of 21:47, 4 March 2022

/* Any JavaScript here will be loaded for all users on every page load. */


const re = /#(.*)$/;

found = re.exec(window.location.href);
console.log(found);