Archive for March, 2009

Include Javascript File in HTML Document

Sunday, March 29th, 2009

The best way to include a Javascript file into an HTML Document is by loading and evaluating it. To do this with jQuery you can use the $.getScript() function. This function will load the contents of the Javascript file through an AJAX request.

To learn more about this function click here.