Day 17

Quiz

1: If you had a text box named txtStartDate on a form that was named frmMain, how could you read the value in JavaScript in order to validate the entry?
A1: StartDate = document.frmMain.txtStartDate.value;
2: What property could you set to cause the client browser to jump to another page?
A2: location.href = http://www.mcp.com ;

This would cause the browser to jump to the Macmillan Web site.

3: Given the button
<INPUT TYPE=BUTTON NAME=cmdTotal VALUE="Total Your Order">

add an onclick event to it to call the function GetTotal.

A3: The LANGUAGE attribute specifies the language to use. Next the onclick event is set to the specified function, which is wrapped in quotes .
4: In Internet Explorer, how do you cause an event to ...

Get Sams Teach Yourself Microsoft® Windows® DNA Programming in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.