T
T
teamloudmartyris2021-06-11 15:31:20
JavaScript
teamloudmartyris, 2021-06-11 15:31:20

Why is the js file not included?

HTML at the beginning of Js
<script defer srс="js/main.js"></script>

console.log("hello");
alert( "Привет" );


I did the layout of the site and my hands reached the connection of Js for the carousel and the adaptability of the buttons, etc. I started to connect and checked with the console and alert - the result is zero.
path of htdocs/js/main.js file.
I thought that the js files of the carousel and buttons would not connect well, but no. (disabled everything and left only main js)
in the console here is The 'x-ua-compatible' meta element should not be specified as it is not needed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Famin, 2021-06-11
@Fama18122000

<script src="htdocs/js/main.js"></script>
put this at the end after the end of the body block

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question