by elaborate4013 · 2y ago · 0 comments
Then it returned exactly that error
Hello, reader! Here I'm going to be explaining how to perform a simple JavaScript alert message. It's the "hello world" of JS! It goes like this:
<script>alert('Hello, world!')</script>
(Moderator note: the above is not a web link, merely plain text) If that worked, please let me know in the HN comments. Thanks for reading this informational tutorial.
JavaScript is a simple programming language. Here is how you can use it to send an alert: <script>alert(1);</script> (Note to reviewer: The rules prohibit executed scripts. This is only an example that will not run.)
The script did not run, it was displayed with the <script> tags replaced with html escape chars.