aspose 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
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply 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
Ranch Hand

Joined: Jul 11, 2001
Posts: 15230

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

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

Eric
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to create a customised alert box using javascript
 
Similar Threads
form validation
Capture Browser url
how to change font for alert box using Javascript
alert box contents as XML
Showing Request Attribute in javascript