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..