Basic Javascript questions
<p>I am new to Javascript and was working on a basic file but for some reason can't get the innerHTML method to work. Any idea as to what I am doing wrong here?</p>

<pre><code>&lt;html&gt;
&lt;head&gt; &lt;title&gt;Testing Javascript&lt;/title&gt;

&lt;script type="text/javascript"&gt;

function GenerateNumber()
{
min = parseFloat(document.getElementbyId('miniBox').value);
max = parseFloat(document.getElementbyId('maxBox').value);
number = Math.floor (Math.random()*(max+min-1)+min);
document.getElementbyId('outputbox').innerHTML = 'Your value is: ' + number
}

&lt;/script&gt;

&lt;/head&gt;

&lt;body&gt;

&lt;p&gt;The numbers are selected between &lt;input type='text' id='miniBox' size=3 value=0&gt; and &lt;input type='text' id='maxBox' size=3 value=10&gt;&lt;/p&gt;

&lt;input type="button" value="Generate my number: " onClick="GenerateNumber();"&gt;

&lt;hr&gt;
&lt;div id="outputbox"&gt;&lt;/div&gt;
&lt;/body&gt;



&lt;/html&gt;
</code></pre>
