line return in javascript
<p>im trying to make this box stay one one width at 150px but how do i get text that is retrived that is longer that that return text to the next line instead of expand the div.</p>

<pre><code>       &lt;div id="page" style="position:absolute; float:right; top:500px; right:0px; background-color:#F5F5F5; color: #F6221D; font-size:12px; width:150;"&gt;
        &lt;h2&gt;ShoutOut&lt;/h2&gt;

        &lt;form method="post" action="shout.php"&gt;
            &lt;strong&gt;Message:&lt;/strong&gt;
          &lt;input type="text" id="message" name="message" class="message" /&gt;&lt;input type="submit" id="submit" value="Submit" /&gt;
        &lt;/form&gt;

        &lt;div id="shout" style="padding:0 10px 0; width:150; height:170px;; overflow-y:auto;"&gt;

        &lt;/div&gt;
    &lt;/div&gt;

&lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
$(function() {

    //populating shoutbox the first time
    refresh_shoutbox();
    // recurring refresh every 15 seconds
    setInterval("refresh_shoutbox()", 15000);

    $("#submit").click(function() {
        // getting the values that user typed
        var name    = $("#name").val();
        var message = $("#message").val();
        // forming the queryString
        var data            = 'name='+ name +'&amp;message='+ message;

        // ajax call
        $.ajax({
            type: "POST",
            url: "shout.php",
            data: data,
            success: function(html){ // this happen after we get result
                $("#shout").slideToggle(500, function(){
                    $(this).html(html).slideToggle(500);
                    $("#message").val("");
                });
          }
        });    
        return false;
    });
});

function refresh_shoutbox() {
    var data = 'refresh=1';

    $.ajax({
            type: "POST",
            url: "shout.php",
            data: data,
            success: function(html){ // this happen after we get result
                $("#shout").html(html);
            }
        });
}
</code></pre>

<p></p>
