aspose file tools*
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
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
Author

how to create a warning pop up?

gaurav kumawat
Greenhorn

Joined: Jul 26, 2006
Posts: 11
Hi,
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.";
if(confirm(message))
{
write your code when user press ok
}
else
{
write your code when user press no
}
Thanks
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Moving to the HTML/Javascript forum.


GenRocket - Experts at Building Test Data
Naresh Chaurasia
Ranch Hand

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

pop up


SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
 
jQuery in Action, 2nd edition
 
subject: how to create a warning pop up?