Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I wrote a html code to design my website. and added a java script file in the project and also linked by the following code:

<script src="functions.js" type="text/javascript"></script>

but it didn't actually link with the file.

what should be the code.

N:B: its a .aspx file where to be added the js file.

Thanks in advance
Posted

Its just a path issue. Just drag and drop the js file from your solution explorer to the aspx page it will automatically take the correct path.

:)
 
Share this answer
 
Comments
nest101234 12-Apr-14 23:12pm    
Thanks.....:-)
Sanket Saxena 14-Apr-14 0:41am    
Most welcome.
 
Share this answer
 
Try in this way.> :)

HTML
<script language="javascript" type="text/javascript" src="functions.js"></script>


Make sure path in correct of js file in your project
 
Share this answer
 
JavaScript
<script  type="text/javascript" src="Relative javascript file path"></script>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900