theobjects = document.getelementsbytagname("object"); for (var i = 0; i < theobjects.length; i++) { theobjects.outerhtml = theobjects.outerhtml; }