Home >Web Front-end >JS Tutorial >What does javascript warning mean

What does javascript warning mean

coldplay.xixi
coldplay.xixiOriginal
2020-08-11 13:30:344647browse

javascript warning means popping up a warning box. The setting method is: first press f12 in the browser to open the console; then enter [alert('warning popup')] in the input box and press Enter That’s it.

What does javascript warning mean

#In javascript, alert() means popping up a warning box.

We can enter the code in the browser to try to see the effect of alert.

What does javascript warning mean

Related learning recommendations: javascript video tutorial

Setting method:

1. In the browser, press f12 to open the console.

What does javascript warning mean

#2. If there is no input box in the lower half of the console, press esc.

What does javascript warning mean

#3. The framed part is the input box we need.

What does javascript warning mean

4. Enter

alert('warning pop-up')

in the input box and press Enter

What does javascript warning mean

5. A warning box pops up and the code takes effect.

What does javascript warning mean

Related learning recommendations: Programming video

The above is the detailed content of What does javascript warning mean. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn