Board Thread:General Coding Help/@comment-4738647-20150125144012

Since #REDIRECT article does not work when the article begins with [[w:c: I'm trying to use the following script to redirect instead. function exredirect {       window.location.href = document.getElementById("article").id; }

And in the wiki code in template it would be

So function retrieves the text inside the div tags and redirects to whatever value the template parameter is.

But I want the code to execute when the page loads, normally, I would do  But it doesn't work here. 