RPJD that would be:
Code:
<style="color:red; font-face:verdana;">
This is the full document of a previously post solution to your problem:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript">
function call() {
var f = document.addition;
var result, fMath, fEng;
fMath = parseInt(f.math.value);
fEng = parseInt(f.eng.value);
result = fMath+fEng;
f.nResult.value = result;
f.nResult.style.color = 'red';
}
</script>
<style type="text/css">
label {display:block;}
</style>
</head>
<body>
<form action="#" name="addition">
<div>
<label>MATHEMATICS :<input type="text" name="math"></label>
<label>ENGLISH :<input type="text" name="eng"></label>
<label>RESULT :<textarea name="nResult" cols="50" rows="50" readonly></textarea></label>
<input type="button" name="add" value="RESULT" onclick="call();">
</div>
</form>
</body>
</html>
Bookmarks