<html>
<head>
<script type="text/javascript">
function redirect(input)
{
var text = input.value;
if (!text) return;
var w=document.getElementById('a').value;
var x=document.getElementById('b').value;
var y=document.getElementById('c').value;
window.location.href = "http://www.google.com/" + w + "/"+ x + "/" + y ;
}
</script>
</head>
<body>
<input type="text" id="a" />
<input type="text" id="b" />
<input type="text" id="c" />
<input type="submit" name="button" id="button" value="Submit" onClick="redirect(this)">
</body>
</html>
|