interviews.dotnetthread.com

↑ Grab this Headline Animator

Thursday, July 10, 2008

How to load external JavaScript or CSS files dynamically in Javascript

To load a .js or .css file dynamically, in a nutshell, it means using DOM methods to first create a swanky new "SCRIPT" or "LINK" element, assign it the appropriate attributes, and finally, use element.appendChild() to add the element to the desired location within the document tree.
See the code here(Click Here.)

Submit this story to DotNetKicks

No comments:

Post a Comment

Post your comments/questions/feedback for this Article.

 

Latest Articles