Thread:Project:Support desk/How to add onclick attribute?/reply

For security reasons it is not allowed to use JavaScript inside wikitext. Please modularise your code and store them centrally, triggered by namespaces or elements in the page. This prevents duplication and keeps visitors safe from javascript injection.