SyntaxFix
Write A Post
Hire A Developer
Questions
Use this to remove iframe from parent within iframe itself
frameElement.parentNode.removeChild(frameElement)
It works with same origin only(not allowed with cross origin)