DISCRIPTION ABOUT USING BOX AND STATEMENT

1.A confirm box is often used if you want the user to verify or accept something.
2.When a confirm box pop-up, the user will have to click either "OK" or "Cancel" to proceed.
3.If the user clicks "OK", the box returns true. If the user clicks "Cancel", the box returns false.
4.In this program we change the background colour according to selected choice by using If Else condition.
FOR EXAMPLE:-

<html> 
     <head> 
	     <title>my java</title> 
	 </head> 
	 <body> 
	 <script> 
	 var mychoice=confirm("this is alert box");
	 document.write("<h1>ISHU</h1>");
	 document.write("<h2>ISHU</h2>");
	 if(mychoice){
	 document.bgColor="green";
	 }
	 else{ 
	 document.bgColor="pink";
	 } 
	 </script> 
	 </body> 
</html>