I am dynamically creating an
IFrame then adding a
script tag to it with code that should execute when the frame loads, however it is never executed.
I am assuming the
window onload event is triggered before the code is added to the
IFrame. Is there anyway to ensure it is called? Also it needs to be contained with in
window.onload as it is for a JS based code editor so the iframe has to react as it would in a browser window. Cheers.
Solved by using
©2020 All rights reserved.