Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

alert

The alert() method of the Window object is used to render a dialog box that shows the provided output to the user. This output dialog box requires the user to acknowledge it, and it will pause any script on the page from further processing until it is acknowledged by the user.

Syntaxwindow.alert( output )

Parameters

output A string, number, or variable representing the output.

Examples

alert( "Your time ran out." ); window.alert( "Your time ran out." );

JavaScript

Methods

addEventListeneralertaveragebackblurconcatcreatedecodeURIdecodeURIComponentencodeURIencodeURIComponentevaleveryfilterforwardgoisArrayisFiniteisNaNjoinparseFloatparseIntpoppushpushStatereducereplaceStatereverseshiftshuffleslicesomesortspliceunshiftwrite