V.Vidhya Logo

V.Vidhya

DOM Events II


Q1.

Create a simple webpage using HTML & (if required) CSS.

Image 6

Now on pressing the Escape key, a header menu bar should pop-up (toggle).

Expected Output:

Image 7

On pressing Escape key again, the header menu bar should get hidden.

So in short, the header menu bar should toggle (become visible & hidden) on pressing Escape key only.


Q2.

Create a student entry form.

Create a simple HTML with a h1 for the app heading, a form with input to add a student name and submit button to add a student entry.

Image 1

Now on clicking the add button after entering name in the input field, the student name should be added to the page in the form of a list item.

Expected Output:

Image 2

Advance Tasks:

If you are done with the above tasks then do the following ones.


Q3.

Create a student course enrollment form.

Create a simple HTML with a h1 for the app heading, a form with input to add a student name, input to add student age, input checkbox to select skills and submit button to add a student entry.

Image 3

Now on clicking the Check Eligibility button, the form should get reset and at the bottom of the form, a message should be shown to notify the student whether he/she is eligible to enroll & if not eligible then provide a reason as well.

Expected Output:

Guidelines:


Prev Post
DOM Events I