I have another question... What if it's not a link, but a button? I tried:
Code:
function selectlink() {
p = document.getElementsByTagName("anchor")
clicky = p[0].href;
window.location = clicky;
}
return (selectlink())
But it doesn't work...
Here's button code:
Code:
<anchor>Parduoti<go href="parda.php?w=krona&nick=plytas&pass=e10adc3949ba59abbe56e057f20f883e&id=mepard&kas=$(kas)&kieki=$(kiek)"></go></anchor>