Checkbox.handleEvent() : CheckBox « Form « JavaScript Tutorial






Syntax

document.form.checkbox.handleEvent(event)

The handleEvent() method provides a way to invoke a check box's event handler, even though the event never happened.

Argument Associated with the handleEvent() Method

eventAn Event object to be handled


<html>
    <form name="orderForm">
      <input type="checkbox"
             name="v6"
             onClick="alert('V6')">V6<br>
      <input type="checkbox"
             name="cylinder4"
             onClick="displayNote(event)">4 Cylinder<hr>
      Step 2:
      <input type="button"
             value="Submit Order"
             name="orderButton"
             onClick="alert('Your order has been submitted')">
    </form>
    <script language="JavaScript">
    <!--
    function displayNote(event)
    {
      alert("V6?");
      document.orderForm.v6.handleEvent(event);
    }
    -->
    </script>
    </html>








10.7.CheckBox
10.7.1.Checkbox
10.7.2.Checkbox.blur()
10.7.3.Checkbox.checked
10.7.4.Checkbox.click()
10.7.5.Checkbox.defaultChecked
10.7.6.Checkbox.focus()
10.7.7.Checkbox.form
10.7.8.Checkbox.handleEvent()
10.7.9.Checkbox.name
10.7.10.Checkbox.onBlur
10.7.11.Checkbox.onClick
10.7.12.Checkbox.onFocus
10.7.13.Checkbox.type
10.7.14.Checkbox.value
10.7.15.Check if a CheckBox checked
10.7.16.With with RADIO and CheckBox
10.7.17.Use checkbox to control the window style
10.7.18.A Checkbox and an onclick Event Handler
10.7.19.A Checkbox, an onclick Event Handler and show/hide form controls