So I'm trying to access an object in an iframe within my script printed below:
<script>document.getElementsByName("submission")[0].click();</script>
This works fine without the iframe, but as stated by question I'm unable to access this object when it's contained within Iframe!
What I've tried so far is giving the IFrame an ID and doing this:
<script>window.frames['NAME'].document.getElementByName("submission")[0].click();</script>
Why does this not work? And what should work?