Tips men- Disable Selection Text ( Protect Seleksi Teks )

Tips men- Disable Selection Text ( Protect Seleksi Teks )

1. Copy paste kode dibawah ini dan simpan sebagai disableSelect.js


window.onload = function() {

document.onselectstart = function() {return false;} // ie

document.onmousedown = function() {return false;} // mozilla

}



/* Jika Anda ingin men-disable semua elemen, gunakan ini. */

window.onload = function() {

var element = document.getElementById('content');

element.onselectstart = function () { return false; } // ie

element.onmousedown = function () { return false; } // mozilla

}



2. Kemudian pastekan kode dibawah ini dan tempatkan dibawahnya < head>


<script type="text/javascript" src="disableSelect.js"></script>




Source : http://dhuwuh.blogspot.com/2008/09/tips-men-disable-selection-text-protect.html



Related Posts by Categories :


0 comments:

Post a Comment

"Using DOFOLLOW System. Pease don`t SPAM!!!"

Thanks To Comment My Articles. God Bless You People.

Add to Technorati Favorites

Technorati Ping To Your Blog
Including Yours E-Mail Address To Subscribe New Tricks