So people, I just need to get an HTML information and return the result of the calculation, but I could not.
<html>
<head>
<title>Calculadora</title>
<script language="javascript" type="text/javascript">
var calculadora = function (){
var pessoas = form1.pessoas.value;
var myCalc = pessoas*0,2;
parent.document.getElementById("calc").Text = myCalc;
}
</script>
</head>
<body>
<title>Calculadora</title>
Pessoas
<form name="form1">
<input type="Text" name="pessoas"><br>
<input type="submit" value="calcular" onclick="return calculadora()">
</form>
Resposta:
<input type="Text" id="calc" readonly ><br>
</body>
</html>