onblur name field
<p>I can't seem to find a way to get the javascript to take the inputted name I put in the box to make it appear where the paragraph is as output when the onblur event happens.</p>

<pre><code>&lt;!DOCTYPE html&gt;

&lt;!--

INFX1606 - Starter kit for Assignment 5.

--&gt;



    &lt;head&gt;

        &lt;meta charset="utf-8"&gt;
        &lt;meta name="author" content="Joey Fultz"&gt;
        &lt;meta name="description" content="Assignment 5"&gt;

        &lt;title&gt;First Swing at Javascript&lt;/title&gt;

        &lt;link href="css/style.css" rel="stylesheet" type="text/css" media="all" /&gt;

        &lt;script type="text/javascript" src="js/scripts.js"&gt;&lt;/script&gt;

    &lt;/head&gt;
    &lt;body&gt;
        &lt;div class="all"&gt;
            &lt;div class="title"&gt;
                &lt;h2&gt;Javascript&lt;/h2&gt;
            &lt;/div&gt;

            &lt;div&gt;
                &lt;h3&gt;Name and Banner&lt;/h3&gt;
            &lt;/div&gt;
            &lt;span&gt;
                &lt;label for="namebanner"&gt;Name:&lt;/label&gt;
                &lt;input type="text" id="namebanner" name="namefield" onblur="showname() value"&gt;
            &lt;/span&gt;
            &lt;p id="p1"&gt;&lt;/p&gt;
        &lt;/div&gt;







    &lt;/body&gt;
&lt;/html&gt;

function showname() {
    var x = document.getElementById("namebanner");
    x.value = x.value.to("p1");
}
</code></pre>

<p>I want to know why my javascript is wrong and why it won't show my name when the onblur event happens.</p>
