3 January 2013

Javascript Confirm button ok and cancel

Javascript Confirm button ok and cancel

var r=confirm("Press a button");
if (r==true)
  {
  x="You pressed OK!";
  }
else
  {
  x="You pressed Cancel!";
  }



No comments:

Post a Comment

Comments Welcome