This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes how to create a warning pop up? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to create a warning pop up?" Watch "how to create a warning pop up?" New topic

how to create a warning pop up?

gaurav kumawat

Joined: Jul 26, 2006
Posts: 11
please tell me that how can i use a pop up on certain event.
Like when i click on "cancel" button i want that it should display a warning message....i.e.,
"Are you sure you want to delete it?"
Button-"Yes" "No"
Check Box() "Dont show this message again"

that is my problem..
please give me idea...
thanks in advance...
[ July 31, 2006: Message edited by: Bear Bibeault ]
amit sharma
Ranch Hand

Joined: Jul 19, 2006
Posts: 129
You can do it with javascript
In javascript there is confirm keyword .You can use it .Sample code is
var message="Do you want to delete it.";
write your code when user press ok
write your code when user press no
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

Moving to the HTML/Javascript forum.

GenRocket - Experts at Building Test Data
Naresh Chaurasia
Ranch Hand

Joined: May 18, 2005
Posts: 361
hi ,
try the following link....

pop up

SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
I agree. Here's the link:
subject: how to create a warning pop up?
It's not a secret anymore!