Push integer from Input to array
<p>Hi im trying to get the number pushed into the array but cant seem to link the input to the array any help please </p>

<pre><code>&lt;html&gt;
&lt;body&gt;
&lt;form id="myform"&gt;
&lt;input type="text" name="input"&gt;
&lt;button onclick="myFunction()"&gt;Add number&lt;/button&gt;
&lt;/form&gt;
&lt;br&gt;
&lt;div id="box"; style="border:1px solid black;width:150px;height:150px;overflow:auto"&gt;
&lt;/div&gt;
&lt;script&gt;
var number= [];
function myFunction()
{
number.push=("myform")
var x=document.getElementById("box");
x.innerHTML=number.join('&lt;br/&gt;');
}
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
