Cross-window communication - JavaScript
https://javascript.info/cross-window-communication12.09.2020 · The “sandbox” iframe attribute The sandbox attribute allows for the exclusion of certain actions inside an <iframe> in order to prevent it executing untrusted code. It “sandboxes” the iframe by treating it as coming from another origin and/or applying other limitations. There’s a “default set” of restrictions applied for <iframe sandbox src="...">.
HTML iframe sandbox Attribute - Dofactory
https://www.dofactory.com/html/iframe/sandboxThe sandbox attribute on a <iframe> tag adds a large number of restrictions to the content of the iframe. These restrictions improve security, but they also restrict the iframe content‘s functionality. Example # A sandbox attribute on a <iframe> element. The attribute prevents JavaScript from executing. Without sandbox an alert box would display.