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.
fr = document.getElementById('iframe1'); fr.src = fr.getAttribute("src")
before calling the lightbox on your onclick element.
精彩评论