A Iframe is dynamically add just after BODY tag and it breaks my all site, So i want to find IFrame which is just after BODY tag and remove it using JQuery. It also adds some Js so, i want also to remove this. Please help me.
HTML Markup
<body>
<iframe></iframe>
<script type="text/javascript">
//<![CDATA[
(function(){
var c = document.body.className;
c = c.replace(/no-js/, 'js');
document.body.className = c;
})();
//]]>
</script>
var el = document.getElementsByTagName("iframe")[0];
el.parentNode.removeChild(el);
or if the #id is static
$("#conash3D0").remove();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With