To add line breaks to JavaScript alert, use “\r\n”. In the following example, we will see how to display text in JavaScript alert.
確定! 回上一頁