alert(“<message>”);





  alert("Hi,this message is for information purpose.");
  













   if(confirm(<confirmation_message>”) == true)
	 {
	  	// Do Something
   }	
   else
   {
	    // Do something else
   }







   if(confirm("Are you sure you want to save your personal information?") == true)
    {
        // Do Something
    }
    else
    {
        // Do Something else
    }














   var variable_name = prompt("<message>","<default_string>");





    var age = prompt("Please enter your age","18");
    if(parseInt(age) >= 18)
    {
      alert("You are eligible to vote");
    }
    else
    {
      alert("Sorry,you can't vote");
    }











Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, March 22, 2011

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250