[thelist] innerHTML Tag Issue

josh evolt at efeingold.com
Fri Dec 14 08:01:46 CST 2001


Does anyone have any idea why this JavaScript works: 

document.all.box.innerHTML = 'Before you can continue, you must write a 
reason for your denial in the text box below.<br><textarea 
name=bod_deny_reason></textarea>' 

While this does not: 

document.all.box.innerHTML = '<p>Before you can continue, you must write a 
reason for your denial in the text box below.<br><textarea 
name=bod_deny_reason></textarea>' 

Where box is the name of the <span> object where the HTML is being inserted.
Note: I am currently testing this on IE4.0. 

Thanks,
Josh 





More information about the thelist mailing list