Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

how many script manager controls are used in Ajax web page?

7 Answers   CSC, Health Prime Services, TCS,


What is view state and how it works in asp net?

0 Answers  


How to use a Master Database in Asp.net?

0 Answers   MCN Solutions,


What are the best practices to follow to secure connection strings in an ASP.NET web application?

0 Answers   MCN Solutions,


How many classes can a single .NET DLL contain?

14 Answers   Siebel Systems,


How to Insert/Add in ASPXgridview

0 Answers   Infosys,


what are the ways to improve performance in .net application?

7 Answers   Mind Tree,


What is data control in asp.net?

0 Answers  


What is session start?

0 Answers  


How to check the end of the record in Datareader?

2 Answers   Cognizant,


To call a Web service which transport protocol you can use?

3 Answers   Siebel,


What would be the salary of an Asp.net developer with 1 and half year experience in indian rupees..??

5 Answers  


Categories