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
What symbol would you use to denote, the start of a code block in aspx views?
Where would you use an ihttpmodule, and what are the limitations if any?
How does asp.net page work?
When should I use server transfer and response redirect?
How to retrieve user name in case of Window Authentication?
What is difference between mvc and asp.net? : Asp.Net MVC
Where is asp.net view state stored?
In which event of the page viewstate is available?
What is the difference between a page theme and a global theme?
How can we Validate a Controls in ASP.NET page using JavaScript?
Does web services support data reader like pom project?
What are the data controls available in asp.net?
What is active web pages?
Contrast OOP and SOA. What are tenets of each ?
Which type if caching will be used if we want to cache the portion of a page instead of whole page?