New line in javascript confirmation message
<p>I've a .net application wherein one of my pages, during initial page load, I'm setting the text of an asp label control. In my aspx page, I've a javascript function to read the label text and show a confirmation pop-up message. The problem is, "\n" with in the label text is not introducing a line break in the JS confirmation message. </p>

<p>My Code Behind-</p>

<p>lblMsg.Text = "string1" + "\n" + "string2"</p>

<p>Aspx Page-</p>

<pre><code>    function PendingDeleteValidate() {
        var x = document.getElementById("&lt;%=lblMsg.ClientID%&gt;");

        if (confirm(x.innerHTML))
            return true;
        else
            return false;
    }
</code></pre>

<p>The JS confirmation dialog message shows - string1\nstring 2. I need to show a line break between the two strings.</p>
