Olá, encontrei alguns erros que poderão ajudar!
No index.html deverás ter o seguinte:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<a href=# onclick="addPonto()"><p>Add Ponto</p></a>
<input type="text" disabled id="pontoTotal">
<iframe id="meuFrame" src="iframe.html"></iframe>
<!-- carregar o javascript depois do html sempre -->
<script src="javascript.js"></script>
</body>
</html>
e no javascript.js aconselho a usares a biblioteca jquery https://jquery.com/
Onde poderás acessar o teu iframe com o seguinte código:
$("#meuFrame").contents().find("#balanco").text("BALANÇO" + pontos);
Espero ter ajudado !
↧