Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
77
rated 0 times [  80] [ 3]  / answers: 1 / hits: 156460  / 11 Years ago, tue, may 21, 2013, 12:00:00

I'm working on a local environment and I'm not sure if I've written my src URl correctly because my functions aren't working. The bold script tag has the src in question.



<!DOCTYPE html>
<html>
<head>
<script src=https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js></script>
<script src=http://www.parsecdn.com/js/parse-1.2.2.min.js></script>

**<script src=/Users/myUserName/Desktop/myPage.js></script>**

</head>
<body>
<div id=mainDiv>
<p><a href=#>anchor</a></p>
</div>
</body>
</html>

More From » localhost

 Answers
165

Write the src tag for calling the js file as


<script type='text/javascript' src='../Users/myUserName/Desktop/myPage.js'></script>

This should work.


[#78106] Monday, May 20, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
micayla

Total Points: 148
Total Questions: 92
Total Answers: 109

Location: Aruba
Member since Sat, Oct 2, 2021
3 Years ago
;