Break Long Messages to show in New Line.

Posted by vishalneeraj-24503 under JavaScript category on | Points: 40 | Views : 574
It's very easy to show long messages into New Line in Javescript
To accomplish this,make a Javascript function as below:-

<script type="text/javascript">
function break_long_message_into_new_line()
var msg1 = "By clicking on this button"
var msg2 = " will remove all the rows from";
var msg3 = " from database.";
var msg4 = " Are you sure you want to Delete?";

alert( msg1 + "\r\n" + msg2 + "\r\n" + msg3 + "\r\n" + msg4);
<asp:Button ID="btn_delete" runat="server" Text="View" OnClientClick="break_long_message_into_new_line();"></asp:Button>

Comments or Responses

Posted by: t5j9033387989 on: 11/26/2013 Level:Starter | Status: [Member] | Points: 10

Login to post response