Tuesday, 2 July 2013

switch statement


Authour:I will teach you courses online

C Language C++ Asp.net VB.net Oracle Hardware and Networking MCSE
Contact: Name: Shrinivas Mobileno:919703619391 E-mail: vas.shrinivas002@gmail.com
--------------------------------------------------------------------------------------------
Switch works like START button in windows 7, If you click control panel automatically cp[control panel] will open.

Same way switch will work

switch(button)  {
case "next":
window.location="next.html";
break;

case "previous":
window.location="prev.html";
break;

case "home":
window.location="home.html";
break;

default:
window.alert("Wrong button.");

}


contd after lunch..................with deeeeeep explanation.
-----------------------------------------------------------------------------------------

No comments:

Post a Comment