i try to access an iFrame with the following code:
iframe = document.getElementById('typo3-contentIframe');
iframe.onload = function() {
console.log(iframe);
}
This is my output in the browser console after 1 (!) request
How is this possible? First I have access on the iframe, but after that it is null.
What can I do, that I have permanent access to the iframe?