I have not be able to get the replaceState to work. This seems like the same case, but I have not been able to modify the behavior in question in Chrome, FF, and Opera.
Thanks gits for your help.
The application tests right completely only in Edge and IE now. Chrome, FF, Opera, and Safari fail the same way, although somewhat variably. I'll keep trying the replacestate, anything else I can find that might work,...
User Profile
Collapse
-
Thanks gits. I'll try this. And I appreciate your help. Do you think this has to be run in every link that can happen in an iframe? I'm thinking so, but can not really tell from the article. It looks like the code is embedded inline at the bottom of any reachable page in the iframe.
I do want to ask another question. My original direction in the application I'm working on was a cross browser solution. I'm at the completion of...Leave a comment:
-
The following code did seem to modify the Chrome and Opera behavior.
...Code:window.addEventListener('beforeunload', function(event) { var iframesx = document.querySelectorAll('iframe'); for (var i = 0; i < iframesx.length; i++) { iframesx[i].history.back(iframesx[i].history.length); iframesx[i].parentNode.removeChild(iframesx[i]); }Last edited by zmbd; Aug 10 '18, 10:35 PM. Reason: [Z{fixed code tags. Use square "[]" not angle "<>" better yet use the [CODE/] tool in the format bar :) }{fixed typo}]Leave a comment:
-
The random naming (name and ID) did not work. The result was pretty much the same. How can the new iframes (new NAMEs and IDs) created after the refresh be associated with the history of the iframes that existed before the refresh.
I'm kind of at a loss. I need a cross browser solution. Maybe the html5 'object' would be a better choice than the iframe. Any suggestions would be appreciated.Leave a comment:
-
Good suggestion. I'll try it. This app has been developed over about 9 years at this point. This was dome in frames and it worked well in all 5 browsers. I reworked this into iframes in going toward the HTML5 standard. And this came up. Maybe object would be a better choice. I'll be back. Thanks.Leave a comment:
-
What the heck? The post went through in a reply to this post.
I'm testing in Chrome, Edge, FF, IE, and O.
The case is that a page has up to 5 iframes that show on a single page. A page is executed in each iframe. These pages have links to other pages that have links. A browser refresh returns the screen to the initial page state in all 5 browsers. But in Chrome and O, the history of the iframes of the set are not deleted. The browser back button or a JavaScript history(-1) button work as originally...
No activity results to display
Show More
Leave a comment: