将JS嵌入到网页中的不同方式—在网页中直接引入(一)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/weixin_36282409/article/details/86561102
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>javascript基础</title>
<!--
<script type="text/javascript">
	window.alert("欢迎访问我们的网站!");
</script>-->
</head>
<body>
<h3>javascript基础:引入javascript.</h3>
<p>操作要求:在网页中插入js语句,使网页在打开时,弹出信息框,显示"欢迎访问我们的网站"。
<script type="text/javascript">
	window.alert("欢迎访问我们的网站!");
</script>
</body>
	</html>

猜你喜欢

转载自blog.csdn.net/weixin_36282409/article/details/86561102