JavaScript Exercises : Your first JavaScript programs
Our web spider found the following code snippet at www_math_grin_edu and contains information about asin and JavaScript.
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
Read the entire article....