Jump to content
Fórum Script Brasil
  • 0

Não Funciona no Mozilla


Question

Ai galera... estou tentando executar esse código no MOZILLA e no CHORME e não roda...

Ele só funciona no IE.... :huh:

<script>
function teste()
{
parent.escondido.document.write("<body bgcolor='#ffffff'>AAAA</body><br>");
parent.document.getElementById("escondido").style.height =  "200px";
}

document.write("<body bgcolor='#dddddd'><a href='java script:teste()'>Teste</a></body><br>");
document.write("<iframe name='escondido' width='570' height='0' scrolling='no' border='0' frameborder='0'></iframe>");
</script>

Galera me desculpe que eu não vi que esse fórum era só de JAVA...

Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Ei galera consegui o efeito esperado, nos navegadores citados...

Estou postanto pra quem tiver esse problema que eu tive resolver de boa.

&lt;script>

function teste()

{

parent.escondido.document.write("<body bgcolor='#ffffff'>AAAA</body><br>");

setTimeout("document.all.tes.style.height='200'",0);

}

document.write("<body bgcolor='#dddddd'><a href='java script:teste()'>Teste</a></body><br>");

document.write("<iframe style='width:570; height:0;' id='tes' name='escondido' width='570' height='0' scrolling='no' border='0' frameborder='0'></iframe>");

</script>

Abraços...

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      148691
    • Total Posts
      644531
×
×
  • Create New...