Create OK/Cancel prompt in javascript for web browsers.

Can be used in place of Yes/No prompt.
JavaScript


result=window.confirm('You about to do something, click OK to proceed or Cancel.');

if (result==true) {
      alert("you clicked yes")
} 

Posted by fbrefere001 on Thursday March 20, 2003