1.

Which attribute is used for activation of JavaScript?(a) button(b) checkbox(c) url(d) submitThis question was posed to me during an interview for a job.This interesting question is from Input Types for Forms in section HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

Right choice is (a) button

Explanation: INPUT TYPE button is used for the activation of JavaScript on the clicking of the button. Its SYNTAX is CLICK” onclick=”source()”>. This will display a button named click and when we click that button JavaScript function source() will be INVOKED.



Discussion

No Comment Found

Related InterviewSolutions