You can't change the tag name of an existing DOM element: instead, you have to create a replacement and then insert it where the element was. Removing and adding again is the only way I can think of in Javascript. You can use the BANanoElement.Replace() method to do that for you.