My folder hierarchy is:
\- htdocs
|- folder
|- bootstrap
|- js
|- boostrap.min.js
|- index.html
I’m using this script to call the .js file:
<script src="bootstrap/js/bootstrap.min.js"></script>
Also I’ve tried:
<script src="folder/bootstrap/js/bootstrap.min.js"></script>
I had no success, does anybody here know how it works?
Edit: When I said “it doesn’t work”, I mean that the js file is not loaded.
My log file:
1 – – [16/Nov/2012:15:16:21 -0300] “GET /bootstrap/css/bootstrap.min.css HTTP/1.1” 404 1310 “localhost/THU/index.html”; “Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0
Based on your folder structure, and so long as this
<script>is inindex.htmlthat you call out, your first import is correct:p.s. – Don’t forget to include
type="text/javascript"