how to delete contents from input box
<p>I am a beginner with JavaScript.What should i do to delete the contents from my input box.This is my code,</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;Enter your name....&lt;/p&gt;
&lt;input id="myInput"/&gt;
&lt;button type="button" onclick="myFunction()"&gt;submit&lt;/button&gt;
&lt;div id="result"/&gt;
&lt;script type="text/javascript"&gt;
function myFunction(){
    var input=document.getElementById("myInput").value;
    document.getElementById("result").innerHTML='U sure '+input+' is your name';
    myInput="";
}
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
