Anywhere in the body of a web page - Answers Where are <form> </form> tags placed?
submit, reset, & hidden - Answers Buttons that can be automatically created using the type
attribute are:
By email, to a javascript program, & to a server - Answers Which of the following are ways to
submit form data?
name - Answers When using a set of radio button, which attribute must be the same for all
buttons in the set?
shortString = longString.substr (6, 3); - Answers Which line of code should be used to make the
following code snippet work?
var longString = "Great day, isn't it?";
var shortString = ______________________
document.write("It's going ton rain to" + shortString);
Which of the following will send form results from a form named "importantInfo" to the email
address with the subject "Read this!" - Answers Which of the following will send
form results from a form named "importantInfo" to the email address with the
subject "Read this!"
if (var charX.charAt[i] == "X"); - Answers Which line of code will check if any character in the
string variable pword is the letter X and return true for the variable check?
var check = false;
for (i = 0; i < pword.length; i++)
{
_____???_______
check = true;
}
the id attribute - Answers Given the following line of code, what does the this keyword refer to?
<input type = "button" name = "murgatroyd" id = "Mortimer" onclick = "doSomething(this.id)" />
tab index - Answers Which of the following sets or changes the tab order of form controls?
onfocus = "setBlue('blue')" - Answers Which of the following will call a function named setBlue()
, when a text box with id = "blue" gets the focus?
<a href="Javascript:doStuff()"> <img src = "redButton.jpg"> </a> - Answers Which of the
following will substitute an image named redButton.jpg that is stored in the same place as the
web page for a generic button? The doStuff() function is called when the button is clicked.
document.getElementById("color_change").style.background = "blue"; - Answers Which of the
following is the correct way to set a background color of blue to an HTML element with id =
"color_change"?
if(myName.length > 2 && myName.length < 11) - Answers Which of the following checks to see
if the number of characters in a given string named myName is greater than 2 and less than 11?
Radio Buttons - Answers _____ are used to allow users to select only one option at a time.
<form></form> - Answers A form using the ______ tag pair can be placed anywhere within a web
page.
event handler - Answers When a form is enhanced with JavaScript, an _____ must be used to
evoke the JavaScript code.
Common Gateway Interface (CGI) - Answers The _____ allows web pages to be generated as
executable files.
False - Answers CGI scripts are normally saved in a folder named cgi-bin that exists on every
client's hard drive.
name - Answers The property of each radio button in a group of radio buttons that must be the
same for each button is the _____ property.
checked - Answers The _____ property can be used to return the state of a checkbox to a
JavaScript function.
Today I will wear a gray shirt and blue pants. - Answers What will be displayed after this
program is coded and run?
var shirt = "blue";
var pants = "gray";
var clothes = wearIt(shirt, pants);
function wearIt( x, y)
{
var myOutfit = "Today I will wear a " + pants + 8