954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

JavaScript Dialog Box Button Control

Hi,

I just have a program that needs a dialog box,
but I have problem since I want the dialog box to do something.

for example, I have a javascript dialog box that would create a message
"You have an error, Do you want to save the Log File", Then after clicking the button, the function for creating log file will process..

Is this possible? If it is, can someone help me how to create this..

Thanks

jbutardo
Junior Poster in Training
73 posts since Jan 2012
Reputation Points: 8
Solved Threads: 1
 
stbuchok
Master Poster
730 posts since May 2011
Reputation Points: 120
Solved Threads: 93
 

Look at using confirm(): http://www.tizag.com/javascriptT/javascriptconfirm.php

Or you can use jQuery's dialog box: http://jqueryui.com/demos/dialog/#modal-confirmation

I think I'll just use the javascript,
Our project must not use jquery, but thanks by the way

jbutardo
Junior Poster in Training
73 posts since Jan 2012
Reputation Points: 8
Solved Threads: 1
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: