IE browsers are not compatible with JS code?

here"s an analogy:
< script src= "common/jorzlo-index.js" > < / script > I introduce the JS code I wrote on the page I want to browse, and then I can"t execute it in the IE browser.
but if I write the JS code
< script type= "text/javascript" > JS code < / script >
directly on the page I want to visit, it can be executed in the IE browser? Why?
in Google Firefox, these browsers are fine.

Mar.24,2021

see what error is reported next. You may have a file path error here


In the

IE environment, there is not only JavaScript, but also your own default VBScript, so you must declare the type attribute.
other browsers use JavaScript, with no declaration by default.
extension: VBScript cannot be used in HTML5.
correct way to write:

<script type="text/javascript" src="common/jorzlo-index.js">
    // code here
</script>
Menu