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.
Answers were Sorted based on User's Feedback
Answer / varun
If you want to access a java script file from outside the
project folder then follow this:-
<script src="../verify.js" type="text/javascript">
</script>
this way where ever this file will be located; it will be
fetched.
thanks
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / sanjay
You can call in header section with following code.
<script src="myJavaScript.js"
type="text/javascript"></script>
Is This Answer Correct ? | 3 Yes | 3 No |
Answer / 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 |
main difference between asp.net2.0,asp.net1.1,asp.net1.0
What is x xss protection?
How do you get records number from 5 to 15 from a dataset of 100 records?
What is application variable?
Types of session management in ASP.NET ?
Why is it important to maintain session state?
how we use web services
How can you apply a theme to your asp.net application?
Name the two properties are on every validation control?
step to create a strong name?
What is rich control in asp.net?
Explain advantages of caching?