Combined page history

Joined
Apr 24, 2025
Messages
1
Reaction score
0
I'm working on an application in Perl, JavaScript, CSS, and C. I have a visual with an iframe I load an application into about the visual. The visual also has a history.go(-1) breadcrumb. If I click into the iframe application and then hit the breadcrumb to leave the visual, the breadcrumb backs me through the clicks in the iframe before leaving. I would like to prevent this backing behavior and just leave. Any guidance will be appreciated. I have tried several forms of event listeners and have been looking at iframe-history.js. Thanks. Clifft
 
Joined
Jul 4, 2023
Messages
591
Reaction score
78
AFAIK,
  • window.history.length is unreliable for detecting whether the previous page is inside or outside the iframe.
  • There’s no built-in way to tell if the last history entry was from the iframe — the parent just sees one unified history.

BTW,
Have you read this post on stackoverflow?
Track only iframe history
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,045
Members
48,769
Latest member
Clifft

Latest Threads

Top