html doesn't import the javascript file -


here´s html code:

<!doctype html> <html> <head> <script type="text/javascript" src="/users/edvinhedblom/library/mobiledocuments/com~apple~clouddocs/javascriptfile.js"></script> </head> <body> 

the problem doesn't take functions path. doing wrong?

  1. make sure index.html , js file folder same disk.

2.and remove / in src @ beginning.

<script type="text/javascript" src="users/edvinhedblom/library/mobiledocuments /com~apple~clouddocs/javascriptfile.js"> </script> 

or save javascript.js file in folder name called "js"

and link js file this,

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

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -