ColdFusion.MessageBox.show

Description

Used to display a ColdFusion message box.

Function syntax

ColdFusion.MessageBox.show(name)

History

ColdFusion 9: Added this function

Parameters

Parameter

Description

name

Name of the message box that you want to display.

Returns

This function does not return a value.

Usage

You can create a messagebox using the cfmessagebox tag or the JavaScript function ColdFusion.MessageBox.create. But to show it, you must use this function.

Example

<cfajaximport tags="cfmessagebox,cfform"> 
<cfform name="ajax"> 
    <br><input type="button" name="showMessageBox" value="Show Message Box" onClick="ColdFusion.MessageBox.create('mb','Alert','ALERT','Sample Alert!');ColdFusion.MessageBox.show('mb');"> 
</cfform>