Languages
[Edit]
EN

JavaScript - alert

0 points
Created by:
Selina-Miranda
737

This article will show you how to use alerts in JavaScript.

The alert() method displays an alert box with a message and an OK button.

 

Practical example

// ONLINE-RUNNER:browser;

alert("Hello, World!");

 On mobile (Android):

Alert Box on Android - JavaScript
Alert Box on Android - JavaScript

Alternative titles

  1. JavaScript - alert function
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

JavaScript tutorial

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join