How can i print a alert message inside ajax other than using alert function : <p>How can i print a alert message inside ajax other than using alert function.</p>

<pre><code>if (x.readyState == 4 &amp;&amp; x.status == 200)
    {
        var msg=x.responseText.trim();
        if(msg=="Thank you for booking and Have a nice Journey!!!")
        {

            alert("Successfully submitted");
            window.location="home.html";
        }

    }
</code></pre>
