I’m using MediaWiki, and I can’t use the tag <script></script>.
Have an method to I get the url (location.href) by class?
For example, I put the code location.href in the js file, and in the page I put:
<div class="someclass"></div>
And appear the url?
There are a lot of “variables” available, this should print the current URL(without any scripts):
http://www.mediawiki.org/wiki/Help:Magic_words