Two Laptop Bag*
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
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
 
Don't get me started about those stupid light bulbs.
 
subject: How to create a customised alert box using javascript
 
Similar Threads
form validation
Showing Request Attribute in javascript
alert box contents as XML
how to change font for alert box using Javascript
Capture Browser url