3

How can I create external Javascript libraries which i can use in my web application project created in Visual studio?

2
  • You mean like JQuery, MooTools? Commented Jan 2, 2012 at 12:17
  • 3
    Store your JavaScript code in a file and include it where you want to have it? I don't really understand the question. Commented Jan 2, 2012 at 12:18

1 Answer 1

3

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.