I’m trying to create a widget (which is basically an iframe) that would have its own back and forward buttons.
That is, when I hit the widget back-button, only the iframe goes back, not the entire widget container (the iGoogle-like portal)
I added the following links:
<a class="button" href="#" onclick="history.back();return false;">
It works when I load my widget as a regular webpage, but not when it is used from within the iframe.
I googled a little bit to find this post:
Maybe there is something to do with that contentWindow attribute, but so far nothing. The issue is that I can’t get the name of the frame that is used by the portal (which is random anyway)
I feel like I’m missing something… any hints?
Thanks!
Since your widget and the page are hosted under different domains for sequre reasons you won’t get access from iframe to the parent page by scripts.