Undefined values

Hi,

I have this html/jscript hybrid and when i run it in firefox

the error console says a value is undefined

when i click it

the very first <html> is highlighted???:eek:

any one no why?:thumbsup:

What is the full JS code your using?

Hi,
The full js code is below i haven’t got the last two functions to work yet.
I figure i need the first two first?

<script type=“text/javascript”>

        var numbers = new Array();

        function insert(val)
		{
            numbers[numbers.length]= parseFloat(val);
        }
		
		
        function show() 
		{
            var string="";										
            for(i = 0; i &lt; numbers.length; i++)
		{
			string += array[i] +"\

";
}

        document.getElementById("e").value =string;
		}
		
		function sum(numbers) 
		{     
		if (numbers.length == 0)    
		for (i=0; i &lt;array.length; i++)         
		   
		
		document.getElementById("Sum").value = total += numbers[i];return total;
		}
		
		function mean(numbers) 
		{    
		return numbers.length == 0 ? 0 : sum(numbers)/numbers.length;
		
		document.getElementById("answer") = mean(numbers).value;
		}
	
		
    &lt;/script&gt;