How To Call Outside Javascript File?
Example : Our Project File Folder Name "Sample" Another
Folder Name "Check".Check Folder Is Out Side Of Our
Project ?Check Folder Have Verify.Js File. My Question Is
How To Call Verify.Js File.

Answer Posted / vikas

Assuming the following directory structure:

~/Sample/project.html
~/Check/verify.js

to use the javascript file in project.html insert the below
code between the <head> and </head>:

<script src="../Check/verify.js" type="text/javascript">
</script>

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What symbol would you use to denote, the start of a code block in aspx views?

571


Where would you use an ihttpmodule, and what are the limitations if any?

517


How does asp.net page work?

521


When should I use server transfer and response redirect?

506


How to retrieve user name in case of Window Authentication?

270






What is difference between mvc and asp.net? : Asp.Net MVC

560


Where is asp.net view state stored?

507


In which event of the page viewstate is available?

459


What is the difference between a page theme and a global theme?

527


How can we Validate a Controls in ASP.NET page using JavaScript?

625


Does web services support data reader like pom project?

524


What are the data controls available in asp.net?

501


What is active web pages?

496


Contrast OOP and SOA. What are tenets of each ?

1734


Which type if caching will be used if we want to cache the portion of a page instead of whole page?

495