Bagi kita pemilik dari sebuah situs atau blog, biasanya kita selalu mau menjaga artikel atau postingan kita agar tidak dapat di copy paste oleh orang lain. Karena bagi orang yang sangat menghargai hasil karya orang lain, kegiatan copy paste adalah sebuah kegiatan ilegal jika di lakukan tanpa ijin.
Nah, untuk menghindari hal itu, berikut ini code javascript yang bisa meng-disable atau mematikan fungsi klik kanan tersebut :
1. Masuk ke Blogger Dashboard dan pilih Layout
2. Klik Add Gadget dan pilih HTML/ Javascript
3. Kemudian copy dan paste code berikut ini ke pop up window yang muncul
<!--MBW Code-->
<script language='JavaScript1.2'>
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
<!--Code End http://mybloggersworld.blogspot.in> - See more at: http://www.coolhackingtrick.com/2013/04/how-to-disable-right-click-on-your.html#sthash.woqsWmpx.dpuf
<!--MBW Code--><script language='JavaScript1.2'>
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
<!--Code End http://mybloggersworld.blogspot.in> - See more at: http://www.coolhackingtrick.com/2013/04/how-to-disable-right-click-on-your.html#sthash.woqsWmpx.dpuf
<script language='JavaScript1.2'>
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
<!--Code End http://mybloggersworld.blogspot.in>
4. Kemudian Save
Semoga bermanfaat.
salam urban
<!--MBW Code-->
<script language='JavaScript1.2'>
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
<!--Code End http://mybloggersworld.blogspot.in> - See more at: http://www.coolhackingtrick.com/2013/04/how-to-disable-right-click-on-your.html#sthash.woqsWmpx.dpuf
<script language='JavaScript1.2'>
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
<!--Code End http://mybloggersworld.blogspot.in> - See more at: http://www.coolhackingtrick.com/2013/04/how-to-disable-right-click-on-your.html#sthash.woqsWmpx.dpuf
<!--MBW Code-->
<script language='JavaScript1.2'>
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
<!--Code End http://mybloggersworld.blogspot.in> - See more at: http://www.coolhackingtrick.com/2013/04/how-to-disable-right-click-on-your.html#sthash.woqsWmpx.dpuf
<script language='JavaScript1.2'>
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
<!--Code End http://mybloggersworld.blogspot.in> - See more at: http://www.coolhackingtrick.com/2013/04/how-to-disable-right-click-on-your.html#sthash.woqsWmpx.dpuf
Wow.. thanks gan,, udh lama ane nyari ini, tp ribet semua,,
BalasHapusmaklum otodidak,, newbie pula.. hha
makasih ya gan :)
Sip gan, terima kasih gan sudah berkunjung..senang bisa membantu
Hapus