t;script language="javascript">
alert("Welcome to my page.");
</script>
Use a library
Make a copy of the file greet.js in the same directory
as the file(s) that you're working on. Your instructor will tell you
where the file can be found. Make a copy of your file for
the next test.
Replace the JavaScript code in your program with the following
code. Then load it and see what happens. If you have problems,
ask the instructor for help.
<script language="javascript" src="greet.js">
</script>
<script language="javascript">
greet("Sam");
</script>
Once you get the page running, try using the prompt() function to
supply the parameter to greet, as in
<script language="javascript" sr |