감청 URL

1429 단어 url
    var _clickEngine = function(e){

        var event = e || window.event;

        var target = event.srcElement || event.target;

        if (target && target.tagName == 'A' && target.target == '_blank'){

            if(target.href.indexOf('xx.xx.com') != -1){

                // 

                if (event.target) {

                    event.stopPropagation();

                    event.preventDefault();

                } else {

                    event.cancelBubble = true;

                    event.returnValue = false;

                }

            }

        }

    };

좋은 웹페이지 즐겨찾기