The HTML page loaded into the nested iframe is a dedicated proxy (helper) file; it only contains JavaScript, and includes a JavaScript-based querystring parser that examines the string and executes a function based on the content of the querystring.
Here’s how the final sequence of events would look:
myLMS.com loads quiz question from content.org into an iframe.
When quiz question is completed, it uses JavaScript to dynamically create a nested iframe.
Before loading the nested iframe, a querystring is added to the URL, such asproxy.html?result=passed.
The JavaScript in the proxy HTML examines the querystring and acts accordingly. In this example, it sees that the variable “result” has a value of “passed”, so it sends a completion notice directly to the JavaScript contained in the parent frame.