The alert function is established to call client alert with specified buttons. It is the base function for Result.alert and Result.confirm.
<script>
function btnClick(){
efw.dialog.alert("To save the input. OK ? ",{
OK:function(){Efw("myPage_save");},
Close:null,
},
"Save or Not",
)
}
</script>
<input type="button" value="Send" onclick="btnClick()">
Calling |
---|
efw.dialog.alert ( message ) |
efw.dialog.alert ( message, buttons ) |
efw.dialog.alert ( message, buttons, title ) |
efw.dialog.alert ( message, buttons, title, callback ) |
Parameter | Type | Description |
---|---|---|
message | String | The information to show at the alert dialog. |
buttons | Object | To define the buttons and the click actions.
{buttonName1:script1, buttonName2:script2} The script will be run at client after the button is clicked. |
title | String | The title for the alert dialog. |
callback | Function | The callback function will be called after the alert dialog closing. |