mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
The test case for the onChange event.
This commit is contained in:
parent
d008728ab0
commit
95b5e67bd9
21
test/ecmascript/onchange.html
Normal file
21
test/ecmascript/onchange.html
Normal file
@ -0,0 +1,21 @@
|
||||
<html>
|
||||
<script>
|
||||
function go(url)
|
||||
{
|
||||
if (url != "") {
|
||||
document.location.href=url;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<body>
|
||||
<form name="a">
|
||||
<select name="s" onchange="go(a.s.value);">
|
||||
<option value="">-----------</option>
|
||||
<option value="http://www.google.com/">Google</option>
|
||||
<option value="http://freshmeat.net/">Freshmeat</option>
|
||||
<option value="http://www.elinks.cz/">ELinks homepage</option>
|
||||
<option value="http://bugzilla.elinks.cz/">Bugzilla</option>
|
||||
</select>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user