You are on page 1of 1

<html>

<head><title>BT5 - Thay d?i gi� tr? c?a thu?c t�nh</title>


</head>
<body>
<h2>H�y nh?p hai s? v� nh?p v�o n�t T�nh t?ng</h2>
<input type ="text" name="SoHang1"> +
<input type ="text" name="SoHang2"> =
<input type ="text" name="Ketqua">
<input type ="buttton" value="T�nh t?ng" onclick="Ketqua.value =
parseFloat(SoHang1.value) + parseFloat(SoHang2.value)">
</body>
</html>
-------------------------------------------------------------

<html>
<head><title>BT6</title>
</head>
<script language="javascript" type="text/javascript">
function KiemTra()
{
if(NoiDung.value.length > 200) alter("B?n d� g� qu� s? l� t? cho ph�p! ");
SoKyTu.value = NoiDung.value.length;
}
</script>
<body style="font-family: arial">
S? k� t? d� g�: <input type="text" name="SoKyTu"><br>
<textarea name="NoiDung" cols=50 rowx="10" onKeyUp="KiemTra();">
</textarea>
</body>
</html>

You might also like