Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create a customised alert box using javascript

 
Avinash Talari
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you want onbeforeunload?

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic