Hi I am trying to return a value from an applet. The value should only return though once I press a submit button.
This is what I have so far: It might be completely wrong. but if any one can help please let me know:
[code=html]<head>
<script language=”JavaScript”>
<!–
function getValue(){
return document.applets[0].getLHost();
}
//–>
</script>
</head>
<applet code=”support.class” width=”500″ height=”600″ align=”top”>
</applet>
<form name=”form1″ method=”post” action=”nextpage.asp” onsubmit=”getValue”>
<script type=”text/javascript”>
<!–
document.write(‘<input type=”text” name=”textField” readonly value=”‘);
document.write(getValue());
document.write(‘”>’);
//–>
</script>
<input name=”Submit” type=”button” value=”Submit”>
</form>