JavaScript warning (alert message dialog)

Keywords: Javascript REST

1 alert (string or variable);  

When we visit the website, we sometimes pop up a small window with a piece of prompt message written on it. If you don't click "OK", you can't do anything to the web page. This small window is implemented by using alert. The above is the alert() syntax

 1 <!DOCTYPE html>
 2 <html>
 3     <head>
 4         <meta charset="utf-8">
 5         <title>JavaScript-Warning ( alert Message dialog)</title>
 6         <script type="text/javascript">
 7         var mystr="Volcano elder brother,Did you read my blog,Remember messages Thanks♪(・ω・)ノ";
 8         alert("(╯▽╰),Blog?(꒪ꇴ꒪(꒪ꇴ꒪ ;)Ha?")
 9         alert(mystr);
10         </script>
11     </head>
12     <body>
13     </body>
14 </html>

Note: the alert pop-up message dialog box (including a OK button) pops up the message box in writing order

  1. No other operation can be performed before clicking the "OK" button in the dialog box
  2. Message dialog boxes are often used for debugging programs
  3. alert output, which can be a string or variable, is similar to document.write.
 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 2 <html xmlns="http://www.w3.org/1999/xhtml">
 3 <head>
 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 5 <title>It's a surprise</title>
 6 <script type="text/javascript">
 7  alert('Hello! For the first time, please take care');
 8  alert('To show my sincerity');
 9  alert('Tell you a joke');
10  alert('Listen carefully.');
11  alert('Here we go');
12  alert('In fact, many boys don't know');
13  alert('In fact, many boys don't know that girls turn around and sob after they get angry with them.');
14  alert('In fact, many boys don't know that girls never really get angry with them, because she really likes him to care about him.');
15  alert('In fact, many boys don't know that girls only nag at the boys they like, and only play with the people they like.');
16  alert('You should know that if she doesn't like you, she won't care about you at all. She is afraid that you will do something wrong.');
17  alert('You know, if she doesn't like you, she won't get angry with you, she won't pamper you, she won't let you coax her - because she is a lady in front of others.');
18  alert('You need to know that if she doesn't like you, you have no ability to make her cry, even if you make her angry, it won't be more than 2 days!');
19  alert('In fact, many boys don't know');
20  alert('In fact, many boys don't know that girls turn around and sob after they get angry with them.');
21  alert('In fact, many boys don't know that girls never really get angry with them, because she really likes him to care about him.');
22  alert('In fact, many boys don't know that girls only nag at the boys they like, and only play with the people they like.');
23  alert('You should know that if she doesn't like you, she won't care about you at all. She is afraid that you will do something wrong.');
24  alert('You know, if she doesn't like you, she won't get angry with you, she won't pamper you, she won't let you coax her - because she is a lady in front of others.');
25  alert('You need to know that if she doesn't like you, you have no ability to make her cry, even if you make her angry, it won't be more than 2 days!');
26  alert('Do you want to keep watching? Go ahead.');
27  alert('We need to start.');
28  alert('Are you ready?');
29  alert('Do you think you can finish?');
30  alert('In fact, there are many more in the back');
31  alert('If you're tired, take a rest');
32  alert('I don't mind');
33  alert('Yes? You want me to order?');
34  alert('I want you to order it');
35  alert('I won't let you order it');
36  alert('No way, you can');
37  alert('I won't let you order');
38  alert('I won't let you order it. It's impossible');
39  alert('If you don't, I'll let you order');
40  alert('No way. I won't let you order');
41  alert('If you don't order, I will.');
42  alert('Let's be reasonable');
43  alert('Can't stand it,I'm about to puke, too');
44  alert('Let's start');
45  alert('Remember where you just saw it?');
46  alert('I don't remember.');
47  alert('I'll repeat that.');
48  alert('It's OK. Be patient');
49  alert('Take your time');
50  alert('Are you off?');
51  alert('You can still see here');
52  alert('I really admire it~');
53  alert('Admire');
54  alert('Admire');
55  alert('Admire');
56  alert('Admire');
57  alert('Admire');
58  alert('Admire');
59  alert('Admire');
60  alert('Admire');
61  alert('Admire');
62  alert('Admire');
63  alert('Admire');
64  alert('You'd better turn it off');
65  alert('There's really no back');
66  alert('Really?');
67  alert('Really?');
68  alert('really');
69  alert('Of');
70  alert('Of');
71  alert('. ');
72  alert('. ');
73 </script>
74 </head>
75 <body>
76 </body>
77 </html>

Posted by $kevan on Fri, 13 Mar 2020 07:19:01 -0700