user96828
user96828

Reputation: 513

iframe/lightbox refresh issues

Please check out: http://gherkin.co.nz/refresh/ and click on the purple box that says 'Membership chest'

You should then see some form fields in an iframe in the lightbox.

If you click on the "GO" button, the page will change (currently Not found, which is fine for now). If you click the dark area to close the box, then click the purple card again - it will take you back to the not found page. When called, I want the content to always go back to the page specified in the iframe src, not the last page.

Can it go back to the first specified page on this second click?

Does that make sense? basically I want the iframe/lightbox to refresh its content each time it is called.

Upvotes: 0

Views: 751

Answers (1)

Javier Parra
Javier Parra

Reputation: 2080

fr = document.getElementById('iframe1'); fr.src = fr.getAttribute("src") before calling the lightbox on your onclick element.

Upvotes: 1

Related Questions