<head> tag. There are numerous reasons why you would require your file be included within the
<head>, for example if you need to use
document.write to manually write
If you are in any doubt, use the technique in the previous recipe. If you need to use the technique in this recipe, the chances are you will know exactly why.
Once again, open the Moodle PHP file where we will add our
.js file. We will use the simple example from the previous recipe as a basis, with the necessary ...