Reputation: 479
How can I create external Javascript libraries which i can use in my web application project created in Visual studio?
Upvotes: 3
Views: 416
Reputation: 2335
You can create library simply as a file, saved with the extension .js, that contains some JavaScript code.
Add a < script > tag, defined on the page(s) that uses the library, used to "connect" to the library
If library name is displaydate.js
You can include it in your code with this tag < script src="displaydate.js" >
Refer: http://www.javascriptkit.com/javatutors/external2.shtml
Upvotes: 3