Page 1 of 1

How restrict Java "windows.open"?

Posted: Sat Aug 27, 2011 2:32 pm
by happyhorror
Often i visit www.rmonline.ru and there is stupid popup for mfonline.ru opening with windows.open - how restrict this java code?

Re: How restrict Java "windows.open"?

Posted: Sat Aug 27, 2011 2:42 pm
by therube
This looks to be the code, but what to do?

Code: Select all

    $(document).ready(function() {
        $('body').mouseup(function() {
            var mp = $.cookie('mythos_promo');
            if (mp == null) {
                $.cookie('mythos_promo', 'show', {expires:3650, path:'/'});
                a = window.open("http://mfonline.ru/banner_click/bid21/", null, "scrollbars=1,location=1,directories=1,status=0,menubar=1,toolbar=1,resizable=1,width=800,height=600,left=0,top=0");
                a.blur(); window.focus();
                if (window.opener != null) {
                    window.opener.focus();
                }
            }
        });

Re: How restrict Java "windows.open"?

Posted: Sat Aug 27, 2011 2:46 pm
by happyhorror
so, how block function by name "ChView" or restrict execution of "windows.open" having "mfonline.ru" :?:

Re: How restrict Java "windows.open"?

Posted: Sat Aug 27, 2011 8:53 pm
by al_9x
The simplest thing you can do is allow the storage of the mythos_promo cookie, which will prevent the popup.