Files
unisa_tsw_2014_2015/js_8.html
2014-11-30 18:46:24 +01:00

35 lines
518 B
HTML

<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<body>
<script>
s = prompt("Sito da visitare: 1 - 2 - 3 - 4");
l = null;
if (s && !isNaN(s)){
switch (s){
case "1": l="http://sito1.com";break;
case "2": l="http://sito2.com";break;
case "3": l="http://sito3.com";break;
case "4": l="http://sito4.com";break;
}
if (l)
location.href=l;
}
</script>
</body>
</html>