Discussion
What is/are the purpose(s) of JavaScript events? i) Provide a dynamic interface to a webpage. ii) Provide a static interface to a webpage.
Answer: A
Only statement i gives the purpose of JavaScript events: they provide a dynamic interface to a webpage, since the page can respond to what the user does, such as a click or a key press. A static interface would not need events, so statement ii is wrong. So 'Only (i)' is correct. Examples of events are onclick, onload and onkeydown, which trigger code when the user clicks, when a page has loaded or when a key is pressed.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development