File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes dialog box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "dialog box" Watch "dialog box" New topic

dialog box

Kinga Cserveny

Joined: Aug 29, 2001
Posts: 18
I need to put a short java script into my java code that will load a dialog box with a continue and a cancel button. Can anyone help me? I only know of the javascript:alert which puts an ok button on the dialog box. But I need a cancel button too.
Thanks for your help...
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
You should ask that question in the HTML and JavaScript forum. JSP = JavaServer Pages - which is a separate technology that runs only on the server side.
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
You can try a JavaScript's comfirm() dialog box. It gives you both ok and cancel buttons

So much trouble in the world -- Bob Marley
I agree. Here's the link:
subject: dialog box
It's not a secret anymore!