How can transfer value from input text to button?
<p>How can transfer value from input text to button ?</p>

<p>I want to transfer the value of text id="insertValue" to variable "X" in function insert on cklick button ...</p>

<pre><code>&lt;input id="insertValue" type="text" /&gt;
&lt;input type="button" value="Insert" onclick="insert('x')" /&gt;
</code></pre>
