You need to use the tag to include JavaScript source files:
The end tag must be the full , don't abbreviate the way you can with some tags as in .
Yes, alert statements in the included source will appear when they are evaluated by the browser.
For information on the uses of the tag, see w3.org.