Defining Functions - Problem Fixed

This is for comparison with the previous example. The function is now called from a block of code that comes after the function has been defined... so now it works okay.


<SCRIPT>

function function1() {
     alert("This is function1 running.");
}

</SCRIPT>

<SCRIPT>

function1();

</SCRIPT>