WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 What is the Best obj.innerHTML = ... or insertAdjustment ?, Vadim, July 8, 2005
     Re:What is the Best obj.innerHTML = ... or insertAdjustment ?, Erik Arvidsson, July 16, 2005

Subject: Re:What is the Best obj.innerHTML = ... or insertAdjustment ? From: Erik Arvidsson Date: July 16, 2005
insertAdjacentHTML does not work in all browsers. innerHTML works in all browsers but in most cases you also need to use createElement, appendChild, insertBefore and other DOM level 1 Core methods.

One thing to remember is that you should NEVER use element.innerHTML += "something". For this create a DocumentFragment or a temporary DIV and move the content from that.

erik



Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX