So, my page starts with a hidden iframe
, that I have to show after submitting my form. While it seems pretty easy, I have absolutely no idea why it isn't working, and I'd be happy if you could help.
Here is the code for the iframe
:
<iframe src="" name= "UpdIframe" id= "UpdIframe" style="display:none"> </iframe>
And here is the JS function that I'm using to hide and show it.
<script>
function submitFrame(){
document.getElementById('UpdIframe').style.display = "block";
}
</script>
This function actually does more things, but I believe they are irrelevant to the question, so I opted to take it out. And finally, here's the button calling the Onclick
Event:
<tr>
<td>
<input class="botao" type="submit" value="Update" onclick="submitFrame()" style="width: 120px;">
</td>
</tr>
I appreciate the help!