<html>
<head>
<script type=“text/javascript”>
function save(){
document.form1.action=“B.jsp”;
document.form1.submit();
}
function send(){
document.form1.action=“C.jsp”;
document.form1.submit();
}
</script>
</head>
<body>
<form name=“form1”>
<input type=“text” name=“username” value=“scott”>
<input type=“button” value=“发送” onclick=“send();”>
<input type=“button” value=“保存” onclick=“save();”>
</form>
</body>
</html>