Thứ Năm, 23 tháng 10, 2014

không cho click right - view source

#### khong cho click right
 
<script type="text/javascript">
function mousedwn(e) {
try { if (event.button == 2||event.button == 3) return false; }
catch (e) { if (e.which == 3) return false; }
}
    document.oncontextmenu = function() { return false; }
    document.ondragstart   = function() { return false; }
    document.onmousedown   = mousedwn;
</script>

<script type="text/javascript">
if (top.location != self.location) top.location.replace(self.location);
</script>


#### khong cho view source
 
<script type='text/javascript'>
window.addEventListener("keydown",function (e) {
    if (e.ctrlKey && (e.which == 65 || e.which == 67 || e.which == 85 || e.which == 80)) {
        e.preventDefault();
    }
})
        document.keypress = function(e) {
        if (e.ctrlKey && (e.which == 65 || e.which == 67 || e.which == 85 || e.which == 80)) {
    }
        return false;
                };
</script>


#### cách view source
----  addon view source firefox

link website: http://exotic.vn/home/

Không có nhận xét nào:

Đăng nhận xét