general events Flashcards

1
Q

What does the attribute “onmessage” do?

A

This attribute is generally applied to body tag and is introduced in HTML5. It allows a script to be executed when message is triggered.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Define form event.

A

Form events are triggered by actions inside a HTML form.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does a form “onReset” event do?

A

onReset event runs a script when the user resets the form. It is not supported in HTML5.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How many keyboard events exist in HTML5?

A

There are only three keyboard events in HTML5.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Name the keyboard events.

A

onkeydown, onkeypress, onkeyup

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does onkeyup event do?

A

It is a keyboard event and allows a script to be executed when a key is pressed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does onkeypress event do?

A

It is a keyboard event and allows a script to be executed when a key is pressed and released.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which keyboard event will you use to execute a script when a key is released?

A

onkeyup

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How many mouse events are there in HTML5?

A

There are sixteen mouse events in HTML5.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How do you differentiate between onmouseout and onmousewheel events?

A

Both are mouse events. onmouseout event allows a script to be executed when the mouse pointer moves out of an element whereas onmousewheel event allows a script to be executed when the mouse wheel is being rotated.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Name the mouse events that are introduced in HTML5.

A

ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop, onmousewheel, onscroll

How well did you know this?
1
Not at all
2
3
4
5
Perfectly