I have a php page with multiple iframes on the page.
these iframes contain a button if you want. When someone clicks on the "button" im shooting javascript to refresh another frame on the page with id = xxx, this works fine. the problem is that I want to be able to update multiple frames on a page on which they all have the same ID value, so how can this be done.
<iframe id="12345"></iframe> <iframe id="12345"></iframe> <iframe id="12345"></iframe>
This works on a single iframe (I know that you cannot have multiple identifiers the same on the same document.) The idea is that you want to do something like this.
parent.document.getElementById('12345').contentWindow.location.reload();
Sorry for the messy example, ive woke up far to long. :)
source share