I would like to compare the parent iFrame ID from within the iFrame, something like the following would be placed inside the iFrame…
if(window.Id === 'fancybox-content') {
//scripts
}
else {
//scripts
}
Does anybody know a way to get the iFrame ID because window.Id is of course not working.
My iFrame is on the same domains as the parent window by the way.
Thanks
will get the iframe id.