Breeze
12-07-2003, 11:48 PM
I want clicking a checkbox to call a function. Only problem is that it also calls the function when you click off the checkbox.
function rushship() {
if (document.form.rush.checked==true);
window.alert("rushship");
}
<input type = reset value=reset>
<input type="checkbox" name="rush" value="yes" onClick="rushship()">rushship
<input type = button value=test onClick="rushship()">
Thanks
function rushship() {
if (document.form.rush.checked==true);
window.alert("rushship");
}
<input type = reset value=reset>
<input type="checkbox" name="rush" value="yes" onClick="rushship()">rushship
<input type = button value=test onClick="rushship()">
Thanks