wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Javascript Events

Total questions: 10

Worksheet time: 2mins

Name
Class
Date
1.

What is Javascript?

a)

programming language

b)

HTML tags

c)

CSS

d)

A web page

2.

Where do the <script></script> tags go in your document

a)

Within <img> tags

b)

In the <p></p> tags

c)

In the <title>

d)

In the <head> or <body>

3.

Choose the right Javascript event

a)

inmouseout

b)

anmouseout

c)

enmouseout

d)

onmouseout

4.

You can change an image's size using Javascript?

a)

True

b)

False

5.

Which function is being called:


onmouseover="changeText('param')";

a)

function changeText(id) {

document.getElementById(id).innerHTML="This is the new information"; }

b)

function changeText() {

document.getElementById("newParagraph").style.text="This is the new information"; }

c)

function changeText() { document.getElementById("newParagraph").style ="This is the new information"; }

6.

Javascript can:

a)

Interact with HTML

b)

Check or validate user input

c)

Can make your web pages dynamic

d)

All of the above

7.

A Javascript function must be preceded with the word function?

a)

True

b)

False

8.

Choose the correct Javascript mouse event

a)

inmouseover

b)

andmouseover

c)

enmouseover

d)

onmouseover

9.

"onmouseover=normalImage(this)"

will call the normalImage() function

a)

True

b)

False

10.

A Javascript block is used to

a)

Perform specific task

b)

Call an event

c)

Invoke a function

d)

All of the above