<html>
<head>
<title>HTML示列</title>
<style type="text/css">
</style>
</head>
<body>
<script type="text/javascript">
alert("abcccccccc");
</script>
</body>
</html>
/*********************************************************/
<html>
<head>
<title>HTML示列</title>
<style type="text/css">
</style>
</head>
<body>
<script type="text/javascript" src=“1.js”>
</script>
</body>
</html>
/**************************************************************/
1.js文件
alert("abcccccccc");
本文提供了HTML页面的示例代码,包括内联JavaScript的使用,展示了如何在页面加载时弹出警告框,以及如何引用外部JavaScript文件实现相同功能。
349

被折叠的 条评论
为什么被折叠?



