I have the following problem, I am trying to put a push in an onclick event before giving the value to window.location
.
href="javascript:;" onclick="window.location = 'pagina.php';"
But, the problem that I have, is that if I put it ahead with ',' or with ';', in the code that is generated, I see that it appears, but the redirection to the page is lost.
href="javascript:;" onclick="variable.push('4'),window.location = 'pagina.php';"
Then I do not know how to put it ..... I have tried several ways, but the onclick always gets annoyed.
Thanks and best regards