wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Confirm Button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Confirm Button" Watch "Confirm Button" New topic
Author

Confirm Button

sachin shinde
Greenhorn

Joined: Jul 05, 2001
Posts: 27
Hi friends!
I want to know for confirm message Box what actually it returns when we pressed "ok" and "cancle"
How to check it?
Pl reply
sachin
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
I tried to explain it here,
<script>
function confirm_alert()
{
input_box=confirm("Click OK or Cancel to Continue");
if (input_box==true)
{
// Output/Function when OK is clicked
alert ("You clicked OK");
}
else
{
// Output/Function when Cancel is clicked
alert ("You clicked cancel");
}
}
</script>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Confirm Button