0
I’ll try to improve the doubt.
I have a main.html page that looks like this:
<html>
<body>
<div id='divPai'>Sou a div PAI!</div>
<frame id='framePai' src='filho.html'></iframe>
</body>
</html>
On the page son.html would like something like this:
<html>
<body>
<button onclick='alteraPai()'>Alterar DIV Pai</button>
<script>
function alteraPai() {
deAlgumaFormaPaginaPai.divPai.innerHTML = "Mudei!";
// ou
$("#deAlgumaFormaTambem").html("Mudei!");
</script>
</body>
</html>
I hope that’s clearer. Thank you guys!!
Hi Wesley! Can you give an example of HTML and Javascript that does not work? So we can see and help in what is missing.
– Sergio
Hi Sergio! Boy I’ve tried everything but I can’t change an element of the main page from inside the iframe.
– Wesley Silveira
What I want is for you to put the HTML that you can’t get to work
– Sergio
See if it helps Sergio. Thanks maninhooo!!
– Wesley Silveira