Buenas! No se porque el siguiente codigo solo anda en iexplorer, no en chrome , no en firefox.
SI alguien me puede ayudar buenisimo!
Gracias
HTML
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Azist eCards Service</title>
<link href="styles.css" rel="stylesheet" type="text/css" id="estilo" />
<script language="javascript" type="text/javascript" src="funciones.js"></script>
</head>
<body>
<div id="contenedor_form">
<form action="" method="post" name="inicio">
<h1>eCard template </h1> <br />
Please choose if you want one of the pre-designed eCards or a personalized one <br /><br />
<input name="option" type="radio" value="0" /> Pre-designed<br />
<input name="option" type="radio" value="1" /> Personalized<br />
<hr/>
<p class="centrar_boton"><input name="submit" type="button" value="Click to continue" onclick="validar(this.document.inicio)" /></p>
</form>
</div>
</body>
</html>
JS
Código PHP:
<!--Para Validar la pagina form.html-->
function validar(yo){
var sel=false;
for(var i=0;i<2;i++){
if (inicio.option[i].checked){
sel=true;
break;
}
}
if(sel==false){
alert("You must choose an option!");
return false
}
if (yo.option[0].checked) {
location.href = "predesigned.html";
}
if (yo.option[1].checked) {
location.href = "personalized.html";
}
}