Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>redirect</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript">
function newDoc(f) {
for(var i=0; i<f.address.length; i++) {
if(f.address[i].checked) {
location.href='http://www.'+f.address[i].value+'/';
break;
}
}
return false;
}
</script>
<style type="text/css">
label {display:block;}
</style>
</head>
<body>
<form action="#" method="" name="form1" onsubmit="return newDoc(this);">
<div>
<label>google<input name="address" type="radio" value="google.com"></label>
<label>msn<input name="address" type="radio" value="msn.com"></label>
<label>webdeveloper<input name="address" type="radio" value="webdeveloper.com"></label>
<button type="submit">submit</button>
</div>
</form>
</body>
</html>
At least 98% of internet users' DNA is identical to that of chimpanzees
Bookmarks