This is how SharePoint do it when passing argument values from the parent window to the iframe. It's simple, but it works.
Inside iframeContent.html:
The other way around (accessing ifr.dialogArgs from the parent window after having its value modified by the iframe document) also works.