On Aug 5, 2006, at 5:04 AM, suresh kumar wrote: > //oDis.appendChild(this.picObj); /*i dont want this > method*/ > /*i tried this 2 methods but its not working*/ > oDis=picObj; > oDis=picObj.cloneNode(true); If I'm understanding your question, I think you want something like this: oDis.parentNode.replaceChild( picObj , oDis ); Peace, Scott