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

Re: JavaScript Dialog Box Button Control 80 80

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.