Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/04/2003, 13:56
Avatar de bakanzipp
bakanzipp
 
Fecha de Ingreso: noviembre-2001
Ubicación: santiago de shilli
Mensajes: 2.554
Antigüedad: 23 años, 3 meses
Puntos: 0
Código PHP:
<head>
<
script language="JavaScript">
function 
jsvalida()
{
   if(
document.frm.texto.value=="")
   {
       
alert("ingrese valor..");
       
document.frm.texto.focus();
       return 
false;
   }
   return 
true;
}

function 
jsaccion()
{    
if (
jsvalida())    
{
    var 
strUrl "http://www.algo.com/pagina.html";
    
document.frm.action=strUrl;
    
document.frm.submit();
}
}
</
head>
</script>
<body>
<form name=frm>
<input type=text name=texto value==>
<input typee=button value=aceptar onclick="javascript:jsaccion();">
</body> 
saludos.