Code:
onclick="window.open('http://aquatopiaforum.com/index.php?act=Login&CODE=00');window.close();"
... maybe?
You need to always provide a normal HTML form submission as a backup. In your case, you'd do something like this:
Code:
<form target="_blank" action="/index.php" method="get">
<input type="hidden" name="act" value="Login" />
<input type="hidden" name="CODE" value="00" />
<input type="submit" value="Log In" onclick="window.close();" />
</form>
Add whatever Javascript you need on top of that, but make sure it works without Javascript too.
Bookmarks