Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/01/2005, 11:29
Avatar de PatomaS
PatomaS
Colaborador
 
Fecha de Ingreso: marzo-2004
Ubicación: En alguna otra parte
Mensajes: 4.656
Antigüedad: 20 años, 1 mes
Puntos: 63
Hola

Bueno, aquí te dejo un sencillo ejemplo.

Código:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es">
<head>
<script type="text/javascript">
<!--
	function redirigir() {
		var direccionBase = "http://www.geocities.com/";
		var direccionFinal = direccionBase + document.getElementById('valor').value;
		document.location = direccionFinal;
	}
//-->
</script>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<form method="post" action="">
	<p>escribe la dirección a la que serás redirigido en geocities</p>
	<p><input type="text" id="valor" /></p>
	<p><input type="button" value="enviar" onclick="javascript:redirigir()" /></p>
</form>
</body>
</html>
Felicidad
__________________
¡ hey, hou, hou, hey !

Última edición por PatomaS; 10/01/2005 a las 11:31