Quantcast
Channel: Tópicos
Viewing all articles
Browse latest Browse all 11336

COMO PASSAR VARIÁVEL PARA UM IFRAME

$
0
0
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 !

Viewing all articles
Browse latest Browse all 11336

Trending Articles