NEW
Font size
WorksheetsJavaScript Quiz 2
Total questions: 15
Worksheet time: 11mins
This is usually used when you want to make sure that the user reads your message such as warning or a greeting.
Alert Box
User Input Prompt Box
Confirm Box
Warning Box
This is usually used when you want your data to be prompted first before the user can enter a page.
Alert Box
User Input Prompt Box
Confirm Box
Warning Box
This is usually used when you want the user to verify or accept something.
Alert Box
User Input Prompt Box
Confirm Box
Warning Box
These are actions that are triggered either by mouse click, function calls, keyboard strokes, loading of images, submitting an HTML form, etc.
Events
Pop Up Boxes
Functions
Actions
Which of the following attributes happens when the loading of an event is interrupted.
onabort
onblur
onclick
onchange
These attributes are often used with the validation of fields in a form.
onsubmit
onload
onchange
onclick
This is usually used to connect you to another webpage or to trigger an event call.
onclick
onchange
onsubmit
onlaod
These are the windows that pop-out on your screen. This could be before a page is fully loaded, effect of an event on page or before leaving a page.
Popup boxes
Alert boxes
Warning boxes
Dialog boxes
Which of the following is the correct syntax to display "Welcome" in an alert box using JavaScript?
alert-box("Welcome");
msgbox("Welcome");
confirm("Welcome");
alert("Welcome");
To insert a JavaScript into an HTML page, use the _________ tag.
<java>
<script>
<jvcrb>
<jscript>
JavaScript files have the file extension _______.
.jsc
.js
.scj
.html
To display line breaks in the JavaScript syntax, what character will be used?
/
\
}
{
Choose the correct JavaScript mouse event
inmouseover
enmouseover
andmouseover
onmouseover
These events are triggered when a user enters or exits a webpage.
onlaod and onunload
onfocus and onblur
onsubmit and onclick
onmouseover and onmouseout
These attributes are usually for animation purposes. For example, a button or link in a webpage. When the mouse id over it, it will display a different image, however, when you remove the mouse, the button is set back to what it was.
onmouseover and onmouseout
onsubmit and onclick
onblur and onchange
onload and onunload
