JavaScript Fundamentals
Test your knowledge of basic JavaScript concepts including window manipulation, browser detection, arrays, events, operators, page redirection, timing functions, and form validation.
Questions
What is the correct JavaScript syntax for opening a new window called "window5" ?
- new("http://www.ex-designz.net","window5")
- window.open("http://www.ex-designz.net","window5")
- open.newwindow("http://www.ex-designz.net","window5")
- new.window("http://www.ex-designz.net","window5")
How do you put a message in the browser's status bar?
- window.status = "put your message here"
- statusbar = "put your message here"
- status("put your message here")
- window.status("put your message here")
How do you find the client's browser name?
- browser.name
- navigator.appName
- client.navName
You define an array using
- var myarray = new Array();
- var myarray = array new;
- var new Array() = myarray;
- var new array = myarray;
Onclick is equivalent to which two events in sequence
- onmouseover and onmousedown
- onmousedown and onmouseout
- onmousedown and onmouseup
- onmouseup and onmouseout
Whicj best describe void?
- A method
- A function
- An operator
- A statement
Which property would you use to redirect visitor to another page?
- window.location.href
- document.href
- java.redirect.url
- link.redirect.href
Which of the following JavaScript statements use arrays?
- setTimeout("a["+i+"]",1000)
- k = a & i
- k = a(i)
You are a junior web designer. Your company assigns you to work on a JavaScript project. Which of the following are the advantages of using JavaScript for form validation?
- Conservation of client CPU resources
- Increased validity of form submission
- Conservation of bandwidth
- Increase end-user satisfaction
- Either BCD
Your company assigns you to work on a JavaScript project. With the DATE object, which of the following allows you to call a function based on an elapsed time?
- setElapsedTime()
- Timeout()
- setTimeout()
- setTime()