I have a php page that has multiple iframes on the page.
these iframes contain a button if you will. When someone clicks on the “button” im firing javascript to refresh another frame on the page with id=xxx this works fine. the problem is i want to be able to refresh multiple frames on the page they all cant have the same ID value so How could this be done.
<iframe id="12345"></iframe>
<iframe id="12345"></iframe>
<iframe id="12345"></iframe>
This works on a single iframe (i know you cant have multiple ids the same on one document.) The idea is want to do something like this.
parent.document.getElementById('12345').contentWindow.location.reload();
Sorry for the sloppy example, ive been awake far to long. 🙂
This is what I ended up using at it works great! I made the iframe as follows:
Then I was able to use the below code to get all the iframes that had the same name and loop through them refreshing each.
Thanks for all the help hope this can help someone as well.!