blob: 46080f6e4201304461124e7188400ffd6fbe990a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<!DOCTYPE html>
<html>
<head>
<title>No new selection was made</title>
<script>
function updateTitle(selectElement) {
var index = selectElement.selectedIndex;
document.title = selectElement.options[index].value;
}
</script>
</head>
<body>
<select onchange="updateTitle(this)">
<option value="__open__" >Open</option>
<option value="__closed__" >Closed</option>
<option value="__all__" >All</option>
</select>
</html>
|