/ Published in: Mel
2-button dialog code
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
{ // create a confirm dialog with a yes and no button. Specif $response = `confirmDialog -title "Confirm" -message "Yes or No? It's your choice..." -button "Yes" -button "No" -defaultButton "Yes" -cancelButton "No" -dismissString "No"`; // check response if( $response == "Yes" ) { print("User says yes\n"); } else if( $response == "No" ) { print("User says no\n"); } }
URL: http://nccastaff.bournemouth.ac.uk/jmacey/RobTheBloke/www/mel/GUI_dialogs.html