The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Using JS in VBA Template to redirect URL
Hi everyone,
I am trying to use this code in a template relating to vbadvanced, and for some reason it doesnt work. I want to hide a URL in the status bar by using a JS redirect. I need to use this as the URL displays a password for security reasons I do not want revealed. This is what I have been using in the template: Code:
<head> <script language="javascript" type="text/javascript"> function redirect(URL) { document.location=URL; return false; } </script> </head> <a href="xfire:join?game=$game&server=$ip" onclick="return redirect('xfire:join?game=$game&server=$ip&passwor d=$pass');">Xfire Join Server</a> For some reason, the above link still shows and directs to the href="" URL and not the redirect URL as issued to the JS function. Any ideas why it isnt working or can you supply an alternative redirect to make the similar effect? Thanks in advance |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|