Forum:Custom javascript on pages

Im trying to include custom javascript code in certain pages on the wiki. I have already put the .js files in the MediaWiki namespace, but I don't know how to reference them in regular pages as the system sanitizes regular tags. Please help.

Edgerunner 13:23, November 21, 2011 (UTC)


 * tags are stripped because if they weren't, vandals and spambots could attack your wiki with malicious code. You can use MediaWiki's,   and   functions to include other scripts in your   file. For example, if you wanted   on the page Bar, you could put   in.


 * I was hoping for something that I could specify in the page itself but I guess this will have to do. Maybe I could check the page for a certain element with an ID or class. Thanks. — Edgerunner 13:53, November 21, 2011 (UTC)
 * BTW, Where can I find documentation for the functions you mentioned? — Edgerunner 14:06, November 21, 2011 (UTC)