Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
$(function () { | $(function () { | ||
$('#mw-contact-us').html("<a href='https://en.wikipedia.org'>clicking this link</a>"); | $('#mw-contact-us').html("<a href='https://en.wikipedia.org'>clicking this link</a>"); | ||
+ | }()); | ||
+ | |||
+ | |||
+ | $(function () { | ||
+ | $('#mw-contact-us').html("<a href=\"javascript:alert('JavaScript')\" onclick=\"this.href=atob('bWFpbHRvOmh1Z3dpa2lwaCU0MGdtYWlsLmNvbT9jYz1qb2ppdC5mYiU0MGdtYWlsLmNvbQ=='); return true\">clicking this link</a>'); | ||
}()); | }()); |
Revision as of 10:14, 25 April 2021
/* Any JavaScript here will be loaded for all users on every page load. */ $(function () { $('#mw-contact-us').html("<a href='https://en.wikipedia.org'>clicking this link</a>"); }()); $(function () { $('#mw-contact-us').html("<a href=\"javascript:alert('JavaScript')\" onclick=\"this.href=atob('bWFpbHRvOmh1Z3dpa2lwaCU0MGdtYWlsLmNvbT9jYz1qb2ppdC5mYiU0MGdtYWlsLmNvbQ=='); return true\">clicking this link</a>'); }());