In HTML, elements are <script>allowed for external and use <script src="myscript.js">, even if in a <body>document?
<script>
<script src="myscript.js">
<body>
Yes. Here's how a lot of widgets work like Google Maps. Make sure you specify the type:
<script type="text/javascript" src="action.js"></script>
Source: https://habr.com/ru/post/1709360/More articles:Maven does not resolve hibernate-c3p0 dependency on slf4j - javaHow to write bash alias / function to grep all files in all subdirectories for a string? - bashApache Tiles 2.1 - How to prevent duplicate attributes of inherited lists? - tilesSave environment variables after exiting application - .netHow to write my own activex registration element (in C #)? - .netHow to display an Excel spreadsheet in a browser? - javascriptGoogle maps: How to find if there are any markers inside the map - google-mapsMono corporate library compatibility 4.1 - monohow to connect event receiver to user list in sharepoint? - c #Is DelegateCommand the same as "Attached Behavior"? - wpfAll Articles