Assalamu'alaikum,wr.wb.
Kali ini saya akan share bagaimana caranya buat multi line di alert javascript.
Berikut ini syntaxnya.
_________________________________________________________________________________
<html>
<body>
<script language="javascript">
alert("This Alert Box is in Multiple Lines" +
'\n' +
" Because we used line break character in our alert");
alert(
"Name = Anny" + '\n' +
"Age = 18" + '\n' +
"Gender = Female"
);
</script>
</body>
</html>
Kali ini saya akan share bagaimana caranya buat multi line di alert javascript.
Berikut ini syntaxnya.
_________________________________________________________________________________
<html>
<body>
<script language="javascript">
alert("This Alert Box is in Multiple Lines" +
'\n' +
" Because we used line break character in our alert");
alert(
"Name = Anny" + '\n' +
"Age = 18" + '\n' +
"Gender = Female"
);
</script>
</body>
</html>
_________________________________________________________________________________
Semoga bermanfaat.
Sumber : http://www.globalguideline.com/JavaScript_Guide/JavaScript_Examples.php?JScript=JavaScript_Alert_In_Multiple_Lines
http://pangeran-it.blogspot.com/
http://pangeran-it.blogspot.com/
Cara Buat Multiline di Alert
Reviewed by Syawaluddin Amin, S.Kom
on
Juli 30, 2013
Rating:
Tidak ada komentar: