자바스크립트 alert() 개행 넣기

by JM note

HTML

<button onclick="alert('안녕,\n친구들!');">인사하기</button>
<button onclick="alert('안녕,\n\n친구들!');">인사하기2</button>