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

Is post back property in asp net?

0 Answers  


What is session handling in a webfarm, how it can work with its limits?

0 Answers   Siebel,


what is caching?

4 Answers   Microsoft,


What is custom control. What is the difference between custom control and user control?

2 Answers   Microsoft,


Using code explain Configuration Management

0 Answers  






What is the purpose of master page?

0 Answers  


What is the differences between a primary key and a unique key in sql server?

0 Answers  


after which page life cycle event all properties of control will be "fully loaded "

10 Answers   FactorH,


How can you pass multiple complex types in Web API?

0 Answers  


What is the use of placeholder control?

0 Answers  


To which class you load XML or Related Data

1 Answers  


What is caching? What are the different types of caching?

6 Answers  


Categories