May 28, 2021 Article blog
JavaScript is an object- and event-driven scripting language with secure performance, and there are many benefits to learning about it.
JavaScript is used in web application development to add a variety of dynamic features to our web pages, allowing users to navigate to smooth and beautiful effects. JavaScript scripts are often embedded in HTML to do this.
<script type="text/javascript">
<!—
JavaScript 语句;
—>
</script >
instance:
……
<title>初学JavaScript | w3cschool(编程狮)</title>
</head>
<body>
<script type="text/javascript">
document.write("初学JavaScript");
document.write("<h1>Hello,JavaScript</h1>");
</script>
</body>
</html>
<script>... <script > can contain documents anywhere, as long as the code is read and loaded into memory before it is used
1, the use of <script > label
2, external JS file
<script src="export.js" type="text/javascript"></script>
3, HTML tags
<input name="btn" type="button" value="弹出消息框"
onclick="javascript:alert('欢迎你');"/>
That's all you need to learn how javascript works.