Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Alert Method

HtmlWindow.Alert Method

Displays a message box.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public void Alert(
	string message
)

Parameters

message
Type: System.String

The String to display in the message box.

The MessageBox class offers a more powerful version of the Alert method.

Although Alert accepts Unicode text as input, the Internet Explorer script prompt will not display non-Latin language text appropriately on Windows 95, Windows 98, Windows ME or Windows NT due to operating system limitations. For more information, see INFO: Internet Explorer Script Prompts and MBCS/Unicode.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft