Javascript-Link Confirm Cancel


cara membuat link confirm cancel menggunakan javascript.

copy source code dibawah ke <head>

<script>

function rusure(){
question = confirm(“YOUR CONFIRM MESSAGE”)
if (question !=”0″){
top.location = “YOUR LINK GOES HERE”
}
}
</script>

copy source code dibawah ke <body>

<a href=”” onClick=”rusure(); return false;”>YOUR LINK DESCRIPTION</a>

download source code disini

Iklan

Tinggalkan Balasan

Please log in using one of these methods to post your comment:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s