Thursday, December 14, 2006

Using innerHTML with Ajax - How Can I make JavaScript work?

JavaScript inside

script
tags does not work it is inserted in the body of an object using innerHTML.


If you set the innerHTML of a Div or other object to contain

script
tags, you must use the defer attribute and set it to true.



MSDN link here

No comments:

Labels

Blog Archive

Contributors