Create a form that contains a set of checkboxes with different types of coffees ”espresso, cappucino, mocha, and so on. Ask the user for his name and room number and to select a type of coffee. Tell him you will be sending the coffee to his room number. Create a cookie to remember his preference. The next time he brings up the page, tell him there is a special rate for his (use the cookie value) favorite coffee.


Create a cookie that is assigned the user's favorite color. Change the background color of the document to that color .

JavaScript by Example
JavaScript by Example (2nd Edition)
ISBN: 0137054890
EAN: 2147483647
Year: 2003
Pages: 150
Authors: Ellie Quigley

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net