redirect form problem

sindroide 22 Nov, 2009
Hi all!

I have this javascript code

function funcion() {
var el = document.getElementsByName("radio1");
if (el[0].checked) { alert(el[0].value);
location.href="http://gaia.nexonodo.com/index.php?option=com_chronocontact&chronoformname=conocer_mejor_o_e";
alert("nothing");
}
}

and onclick method of submit button call funcion()

the thing is that that code only work if "alert("nothing") is present... I added just to probe..

could you please give me some advice on this?? Thanks!
GreyHead 22 Nov, 2009
Hi sindroide,

Sorry, no idea, the code looks OK to me.

Bob
This topic is locked and no more replies can be posted.