I’am using a masterpage and inside the is an iframe and inside the iframe i sometimes have another iframe.
So i want to get the masterpage using javascript.
I am using this but for some reason it loops and never stops.
<script type="text/javascript" language='javascript'>
var wind = window;
while(wind.parent!=null)
{
wind=wind.parent;
}
wind.document.getElementById('consultar processos').style.color = "#D10759";
</script>
window.top is your friend 🙂