|
|
Authorized user can see question and answers. Please log in or sign up. 
|
#81. Jon wants to use Java Script to validate the Last_ Name field on his when the user tabs out of the field in the Notes client and the Web browser client. He has written the following code in the JS Header event of the from: Function checkfield(x) { I (x.value= ="") { alert (Error-missing information for " + x.name); x.focus(); }}
When he tabs out o the field, nothing happens. Which one of the following must he enter in the event of the Last_ Name field to correct the problem?
Show comments for this question (0)
Add comments
Link to this question
|
|
#86. Ann has written following code in the Submit button on Click event: If(widow.docoment.froms[0].Email.value="") { alert("please enter an email we can use to replay to your question."); window.document.forms[0].Email.focus() } else { window.document.forms[0].submit() }
When she runs it, the else statement is never is never executed. Which one of the following code changes will correct the error?
Show comments for this question (0)
Add comments
Link to this question
|
|
#88. The following statement appear in a function Pat is writing to calculate how many weeks before a Video is released. If (numDays <=7) // First Condition { varMsg = "The video will be released this week". } else if ((numDays > 7) && (numDays <14)) // Second Condition {varMsg = "The video will be released in 2 weeks". } else if((numDay > 14) && (numDays <21)) // Second Condition {varMsg = "The video will be released in 2 weeks". } else if((numDay > 21) && (numDays <28)) // Second Condition {varMsg = "The video will be released in 14 weeks". } else {varMsg = "The video will be released next month". } alert(varMsg);
When pat tests the button that calls the function, which one of the following will occur?
Show comments for this question (0)
Add comments
Link to this question
|
|
#89. Harvey has three numeric, editable fields on his from: unitprice, quantity, and total. He wants to have a button to compute the total .so far he has written: The From = document. forms [0] The Form. Total. Value = the form. Quantity. Value + the form. Unitprice. Value;
Which one of the following will happen when the user enters 10 I the unitripce fiend and 30 in the quantity field and the button is pressed?
Show comments for this question (0)
Add comments
Link to this question
|
|
|
|
gen. 0.166
|
Server date 00:27 08-01-2009
|
Developed by Zip © 2006
|
|
 |
|
|