Hi Rod,
Your combination of HTML + JS works fine on my Moodle 1.8 installation. Here's what I did.
- Upload testpage.htm and test.js to my course files.
- In a Moodle course, Add a Resource, select Link to a file or Web site
- Name the resource Rod Ward
- Select testpage.htm
- Select Keep page navigation visible on the same page
- see result attached: Hello world! is displayed, the call to the js file works
Please note that there is no need to check the Enable trusted content box as advised by John. Uploaded HTML files are quite free to call JavaScript routines, either located within the HTML file itself or in external files (as in your example).
Are you quite sure that your htm and js files are in the same course directory? i.e. that there is no path problem?
What exactly happens when you try to view your testpage.htm as a course resource? Nothing? Now, if you upload both your files to your course files and go there, what happens if you click on the testpage.htm? you should see the Hello world! message displayed. If not, then there must be something wrong with your moodle installation somewhere.
Joseph