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



How To Call Outside Javascript File? Example : Our Project File Folder Name "Sample" Ano..

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

How To Call Outside Javascript File? Example : Our Project File Folder Name "Sample" Ano..

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

How To Call Outside Javascript File? Example : Our Project File Folder Name "Sample" Ano..

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

Post New Answer

More ASP.NET Interview Questions

What are url fragments?

0 Answers  


How does the XmlSerializer work? What ACL permissions does a process using it require?

2 Answers  


How many types of controls are there in asp.net?

0 Answers  


how many character send in one sms forget 160limit and think about gateway allowed

2 Answers   Wipro,


About writting a query and SP which is better ?

5 Answers   Abacus, Satyam,


What is web.config file ?

1 Answers  


Describe how ASP.NET maintains process isolation for each Web application?

0 Answers   B-Ways TecnoSoft,


why many web.config files are used in are project

2 Answers  


What are the main components of the ADO object model? How are they used?

2 Answers   HCL, Syntax Softtech,


can any one find and tell the difference between dot net and php which one is best ? which one we get more salary? which one is stable and which one is best for freshers and also better in future and carrer ? which one we wil get more salary sir ? please send ur valuable suggestions to kiranpulsar2007@gmail.com

0 Answers  


Explain the main function of razor in asp.net? : asp.net mvc

0 Answers  


How do you handle session management in ASP.NET and how do you implement them. How do you handle in case of SQLServer mode ?

0 Answers   Microsoft,


Categories