<html>
<script language="JavaScript">
<!--
function letterBoolean() {
if(this == true)
return("T");
else
return("F");
}
//Make the letterBoolean function available to all Boolean objects
Boolean.prototype.letter = letterBoolean;
var myBooleanObj = new Boolean(true);
document.write("myBooleanObj is set to ",myBooleanObj.letter());
-->
</script>
</html>
|