MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
(Created page with "→Any JavaScript here will be loaded for all users on every page load.: alert("No description available");") |
No edit summary |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
/ | var hashParams = window.location.hash.substr(1).split('&&'); // substr(1) to remove the `#` | ||
for(var i = 0; i < hashParams.length; i++){ | |||
var p = hashParams[i].split('=='); | |||
document.getElementById(p[0]).value = decodeURIComponent(p[1]);; | |||
} |
Latest revision as of 10:26, 23 October 2013
var hashParams = window.location.hash.substr(1).split('&&'); // substr(1) to remove the `#` for(var i = 0; i < hashParams.length; i++){ var p = hashParams[i].split('=='); document.getElementById(p[0]).value = decodeURIComponent(p[1]);; }