Web Engineering
Hassan Khan
Switch Statement
used to perform different actions based on
different conditions.
8/9/2010 Hassan Khan 23
Example (Switch)
8/9/2010 Hassan Khan 24
Popup Boxes
Alert Box
alert(“Hello Every body!!");
Confirm Box
confirm(“Hello");
Prompt Box
prompt(“Your name","")
8/9/2010 Hassan Khan 25
Functions
A function will be executed by an event or by
a call to the function.
8/9/2010 Hassan Khan 26
Example (Function)
8/9/2010 Hassan Khan 27