您的位置:寻梦网首页编程乐园DHTML网页制作完全手册

alert Method

Internet Development Index

Displays a dialog box containing an application-defined message.

Syntax

window.alert( [sMessage])

Parameters

sMessage Optional. String爐hat specifies the message to display in the dialog box.

Return Value

No return value.

Remarks

You cannot change the title bar of the Alert dialog box.

Standards Information

There is no public standard that applies to this method.

Applies To

window

See Also

confirm, prompt