0

<html>

<body>

<h2>JavaScript</h2>

<p>Line-breaks Example in a popup box.</p>

<button onclick="alert('Good Morning,\nWorkingcode Community')">Please Try for line-breaks Example</button>

</body>

</html>

Output:

Good Morning,

Workingcode Community

How to give Line-Breaks In JavaScript
admin Changed status to publish December 19, 2023