+ 1
"Alert" does not work.
Hi, I started to study js and faced with such a problem, the “notification” (alert) does not work, there are no notifications on the screen, what could it be connected with? The js file is connected, alert does not work, even if I write in html, I use the additional jQuery library, everything is connected. I apologize for the "crooked" text, I do not know English well. if I write in html, I use the optional jQuery library, everything is connected. I apologize for the "crooked" text, I do not know English well.
20 Réponses
+ 13
in js, write this
alert("hello");
+ 2
In html file <body><script type="text/javascript"> alert("123...");
</script></body>
+ 2
<html>
<head>Alert</head>
<body>
<script>
alert("I am from alert function");
</script>
</body>
</html>
+ 1
It doesn’t work, I don’t know why
+ 1
It doesn’t work, I don’t know why
+ 1
Could this be due to the fact that I am using the jQuery library or with the features of the editor?
+ 1
🤔 it's working all right for me . Cheque it again
+ 1
Could this be related to my editor?
+ 1
Alert is work in case you write all code without speaing mistack lick me
+ 1
You can write like alert("your text");
0
Try that with html
0
Which ones do you use?
0
Chack my profile i creat a code in web lick and type as it is you get the reasult
0
try this:
go to google chrome and press F12 this will take you to the console now type this on the console;
alert('it works!'); then hit enter this should bring the alert box. to use it in the program put that code in your javascript but just make sure the script is liked properly to the html page and is at the bottom of the body tags.
<script type='text/javascript' src='index.js'></script>
0
Try use Visual Studio Code it's perfect and free and straight forward and trust worthy you can even use the live server extension which enables hot reloading
0
Mry Myp jquery is good with alert
0
Try restarting the application. I do think it will have to work
0
To get alert of hi copy this all code html to /html
<html>
<head>alert of hi</head>
<body>
<script>
alert
{
("Hi")
}
</script>
</body>
</html>
- 1
Please tell me the normal code editor for smartphones that will read js, I launched the project on the computer, everything works, this is a defect of the editor