Close an Iframe from within 2 ASPX Iframes

0

I need help to reload an iframe from within 2 iframes, already tried parent.document, response.redirect, but what I request does not occur.

If I use response.redirect (url), iframe1 is reloaded inside Iframe 3.

If I try to use parent.document.getelementbyid ('iframe1') or parent.document.getelementbyid ('iframe3') or parent.document.getelementbyid ('<% = iframe1.ClientID.ClientID% >') or parent.document.getelementbyid (''), is returned null.

I've attached an image of what I'm trying to do.

I want it when I click the button inside of iframe3, that iframe1 is reloaded.

    
asked by anonymous 13.02.2017 / 16:30

2 answers

0
<script type="text/javascript">
<!--
function refresh(){
//pode referenciar qual frame, 0 1 2 ....
top.frames[0].location.reload();
}
//-->
</script>

<button onclick="refresh()">Refresh</button>
    
13.02.2017 / 17:28
0

I was able to do the following parent.location = 'url', so I just reloaded the iframe 1. Thanks everyone for the help.

    
13.02.2017 / 17:59