1. Pop-up window in js file:
<script type="text/javascript"> $(document).ready(function () { alert("Hello \r\n Javascript!"); alert("Hello \n Javascript!"); }); </script>
2. In. The js pop-up window spliced in the background of the cs page
LiteralResult.Text = string.Format("<script>alert('添加成功!\ 您已选择赠送{0}(积分:{1}分)');location.href=http://www.hake.cc/kf/201111/'VIPList.aspx'</script>", strGift, jifen);
Please use "n"
If this is not possible, then " \n"
For example:
<script type="text/javascript">alert("hello \n world!");</script>