Sang Tran
Sang Tran

Reputation: 1

include js file on html

At first, I'm sorry about my English :))

I had some problems when i try to include file .js on index.html

<script src "../src/man/js/Generator.js"> </script>

but when i press F12 for debug, i get an error like: "failed to load '../src/man/js/Generator.js' from source/src/man/js/Generator.js" this is file's structure:

enter image description here

so how can i deal this?

Upvotes: 0

Views: 276

Answers (3)

sasikaran
sasikaran

Reputation: 152

Please add equal src = "path"

<script src="../src/man/js/Generator.js"> </script>

Upvotes: 0

ryanpcmcquen
ryanpcmcquen

Reputation: 6475

You are missing the =:

<script src="../src/main/js/Generator.js"></script>

Upvotes: 1

Jonham.Chen
Jonham.Chen

Reputation: 66

Oh, you must have check your Path. <script src "../src/man/js/Generator.js"> </script> won't work. but, <script src "../src/main/js/Generator.js"> </script> will work. Man, you forget the 'i' in 'main'

Upvotes: 0

Related Questions