Search code examples
javascripthtmlembed

Can embedded webpages change the code of the main page?


I have created a webpage that has an embedded webpage in itself. Can this embedded page execute functions on the main page, such as innerHTML()?


Solution

  • You can access the window object of the parent document through the parent property.