DTE :]

Wednesday, December 28, 2011

JavaScript Alert Popup Window

JavaScript Alert Window

Perkenalan

<script>
alert("Taufik Nurrohman");
</script>

Lihat Demo

Aksi Berdasarkan Perintah

Dasar

<button onclick="alert('Taufik Nurrohman');">Klik!</button>

Dengan jQuery

<script>
$(function() {
    $('button').click(function() {
         alert('Taufik Nurrohman');
    });
});
</script>

Lihat Demo

Labels: , ,

2 Comments:

Post a Comment



<< Home