JavaScript

Sağ tuş engelleme

sayfanızda sağ click engelleme

<SCRIPT language=JavaScript1.2>
if (window.Event) // Only Netscape will have the CAPITAL E.
  document.captureEvents(Event.MOUSEUP); // catch the mouse up event
function nocontextmenu()  // this function only applies to IE4, ignored otherwise.
{
    event.cancelBubble = true
    event.returnValue = false;
    return false;
}
function norightclick(e)    // This function is used by all others
{
    if (window.Event)   // again, IE or NAV?
    {
        if (e.which == 2 || e.which == 3)
            return false;
    }
    else
        if (event.button == 2 || event.button == 3)
        {
            event.cancelBubble = true
            event.returnValue = false;
            return false;
        }
}
document.oncontextmenu = nocontextmenu;     // for IE5+
document.onmousedown = norightclick;        // for all others
</SCRIPT>

Bu kod kümesi ile sayfanızda sağ click engelleyebilirsiniz.

admin

Kişisel bir kaç şey -günlüğünden Kişisel bir gelişime...

İlgili Paylaşımlar

Bir Cevap Yazın

Göz Atın
Kapalı
Başa dön tuşu
%d blogcu bunu beğendi:

Reklam Engelleyici Algılandı

Lütfen reklam engelleyicini kapatıp sayfayı yenileyin, zira sitemiz sizden hiçbir şekilde ücret talep etmez. Tek gelir kaynağımız reklamlardır. Teşekkürler.