File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes How to create a customised alert box using javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to create a customised alert box using javascript" Watch "How to create a customised alert box using javascript" New topic
Author

How to create a customised alert box using javascript

Avinash Talari
Greenhorn

Joined: May 12, 2010
Posts: 3
I want to have a customised alert box using javascript. Alert Box displays only OK button but can i make it display yes and no buttons just like how a confirmation box pops up when we are trying to close a word document without saving. Please help me with this.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

You'll need to use something like jQuery UI - Dialog for this. There are a lot of different options available. Just hit google.


GenRocket - Experts at Building Test Data
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Do you want onbeforeunload?

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to create a customised alert box using javascript