mercredi 29 mai 2013

javascript/jQuery oneliner to remove iframes

jQuery("iframe").each(function(i,e) {var p=e.parentNode; p.removeChild(e);})
oh I think I saw a unnecessary variable declaration !
jQuery("iframe").each(function(i,e) {e.parentNode.removeChild(e);})

That's all Folks !!!

/me bugs out.

Aucun commentaire:

Enregistrer un commentaire