I have a pretty simple problem which I have not been able to fix myself (I am having trouble manipulating iframes).
Basically, go to say this page....
click on "Click here to Map"...and a map should load up for you....now if you his back once...it will only take back the iframe....so basically you have to hit the back button twice to return to your original page.
Is it possible to avoid this?...Upon clicking the "Click here to Map" button I set the src of the iframe equal to the respective source....
I was reading that perhaps location.replace can help? have no been able to get it working.
Thanks for any help, Andrew
I have a pretty simple problem which I have not been able to fix myself (I am having trouble manipulating iframes).
Basically, go to say this page....
http://andrew.koallo.ca/new/393NelsonSt-JordanFisher
click on "Click here to Map"...and a map should load up for you....now if you his back once...it will only take back the iframe....so basically you have to hit the back button twice to return to your original page.
Is it possible to avoid this?...Upon clicking the "Click here to Map" button I set the src of the iframe equal to the respective source....
I was reading that perhaps location.replace can help? have no been able to get it working.
Thanks for any help, Andrew
Share Improve this question asked Apr 24, 2009 at 15:29 AndrewAndrew 3,6709 gold badges33 silver badges33 bronze badges 3- I think this only occurs in FX - clicking back in Chrome and IE after loading the map takes me to the previous page. – Keith Commented Apr 24, 2009 at 15:35
- aaah...very true...still would be nice if I could do something differently in FX to avoid it.. – Andrew Commented Apr 24, 2009 at 15:47
- I know this is late to ask. but did you solve this problem? if so, can you tell me how? – NoStressDeveloper Commented Jan 5, 2018 at 20:24
2 Answers
Reset to default 7the page you mentioned is offline atm, but you need to set the url for the iframe like this:
$('#myIframe').get(0).contentWindow.location.replace('http://...');
so the url won't make it into the browsers history.
Either put a "back" button in the page with an onclick event to the referrer or change the iframe's code to only use Ajax calls.