NOTICE: This website is no longer updated or supported - as such many of the techniques used to build it may seem antiquated in the modern day. It is preserved for historical reasons only.
<script type="text/javascript"></head>
<!--</script>
function setMessage()//-->
{
var message = document.TestForm.NewMessage.value;
document.NewHello.setMessage(message);
}
<h1>You need Java for this example.</h1></applet>
<input type="text" size="15" maxlength="15" name="NewMessage" /></form>
<input type="button" value="Set Message" onclick="setMessage()" />