<html>
<head>
<title>三角形面积计算</title>
</head>
<body>
<script language="javascript">
<!--
baseWidth = prompt("请输入三角形一边的长度:");
height = prompt("请输入三角形的高度:");
area = baseWidth * height / 2;
document.write("三角形的面积为:" + area);
//-->
</script>
</body>
</html>