| | |
|
|
|
Event handling |
| message from lihaze on 21 Jul 2004 |
This is drivining me nuts! It works in FireFox but not IE6.
I've got an <select> and with a onChange and then a number of <option> and 1
of them has a onClick (tried a onSubmit but wouldn't work on either browser).
I've put in alerts for testing at this stage
Any ideas! Thanks in advance
<html>
<head>
<script language="JavaScript" type="text/JavaScript">
function toggleDisplay(){
window.alert("toggleDisplay");
}
function selectMulti(){
/* window.open("/hello.html", "selector", "height=300, width=400, top=10,
left=10,
ScrollBars=yes, resizable=yes, status=yes");
*/
window.alert("selectMulti");
}
</script>
</head>
<body>
<form name="blah" method="post">
<select name="rpAcc" class="body" onChange="toggleDisplay();">
<option value="ALL">All </option>
<option value="SELECTMULTIPLE" onClick="selectMulti();">Select
Multiple</option>
<option value="v">v</option>
<option value="zz">zz</option>
<option value="qw">qw</option>
</select>
</form>
</body>
</html>
|
|
Archived message: Event handling (Macromedia Dreamweaver Web Design)