Home » HTML » HTML Forms » Question
  1. Which attribute is used for activation of JavaScript?
    1. submit
    2. url
    3. checkbox
    4. button
    5. None of these
Correct Option: D

Input type button is used for the activation of JavaScript on the clicking of the button. Its syntax is <input type=”button” value=”click” onclick=”source()”>. This will display a button named click and when we click that button JavaScript function source() will be invoked.



Your comments will be displayed only after manual approval.