<script type="text/javascript">
....
javascript代码写在这里
</script>
如
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb18030">
<title>插入js代码</title>
<script type="text/javascript">
</script>
</head>
<body>
</body>
</html>