为什么我的JAVASCRIPT脚本运行不了啊

来源:百度知道 编辑:UC知道 时间:2024/06/08 05:04:53
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script language="javascript">
function com()
{
var money=parseInt(document.myform.money.value);
var level=parseInt(document.myform.level.value);
document.myform.result.value=(money-level)*0.3;
}
function initial()
{
document.myform.result.value="";
document.myform.money.value="";
document.myform.level.value="":
}
</script>
</head>

<body>
<form name="myform" method="post">
<table border="1">
<tr><td colspan="2">个人所得税计算器</td></tr>
<tr><td>请输入你的月收入</td><td><input type='text' name='money' /></td></tr>
<tr><

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script language="javascript">
function com()
{
var money=parseInt(document.myform.money.value);
var level=parseInt(document.myform.level.value);
document.myform.result.value=(money-level)*0.3;
}
function initial()
{
document.myform.result.value="";
document.myform.money.value="";
document.myform.level.value="";//这个地方您是在中文状态下输入的分好,应该该为英文状态下输入
}
</script>
</head>

<body>
<form name="myform" method="post">
<table border="1">
<tr><td colspan="2">个人所得税计算器</td></tr>
<tr><td>请输入你的月收入</td><td><input type='text' name='mone