javascript - What is the right way to write my script 'src' url for a local development environment? -


i'm working on local environment , i'm not sure if i've written src url correctly because functions aren't working. bold script tag has 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> 

write src tag calling js file

<script type='text/javascript' src='../users/myusername/desktop/mypage.js'></script> 

this should work.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -