Search
InfoDialog Constructor
See Also
 






Initializes a new instance of the InfoDialog class.

Namespace: MindFusion.Common.UI
File: InfoDialog.js

 Syntax

JavaScript  Copy Code

function InfoDialog ([title, [message, [parent]]])

 Parameters

title
Optional.

String. The text to display as a dialog title.

message
Optional.

String. The message to display as the dialog text.

parent
Optional.

HTMLElement. The Dom element to append the dialog to.If the parameter is not specified, the dialog will be appended to document.body.

 Example

The following code creates a new instance of the InfoDialog class:

JavaScript  Copy Code
var infoDialog = new ui.InfoDialog("Elapsed Time", "You Have Played This Game for 2 Hours!", document.getElementById("content"));

 See Also