This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Confirm Button" Watch "Confirm Button" New topic

Confirm Button

sachin shinde

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
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
I tried to explain it here,
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");
// Output/Function when Cancel is clicked
alert ("You clicked cancel");
I agree. Here's the link:
subject: Confirm Button
Similar Threads
ErrorPage Doubt??
Session Listeners confusion?
An Outdated Exam Package?
Order of Filter Execution