Помогите

Status
Not open for further replies.

umer

Депрессивный
Joined
Jun 24, 2017
Messages
399
Reaction score
39
Вообщем, кто знает как можно сделать так, что бы при переходе на мой сайт открывалось окно в котором было что-то написано, к примеру для закрытия вкладки нажмите да, и при нажатии на да, скачивался плагин который будет скачивать и открывать мой файл?
 

viskoos

Member
Joined
Feb 1, 2018
Messages
11
Reaction score
0
Подмениваете dns, мистер? В приципе ответ в вопросе
 

JEFFRY

Botnet Operator
Reverse Engineer
Social Engineer
Joined
May 29, 2017
Messages
1,375
Reaction score
242
Попробуй этот код (js)
Code:
function Unloader(){
 
    var o = this;
 
    this.unload = function(evt)
    {
        var message = "Вы уверены, что хотите покинуть страницу оформления заказа?";
        if (typeof evt == "undefined") {
            evt = window.event;
        }
        if (evt) {
            evt.returnValue = message;
        }
        return message;
    }
 
    this.resetUnload = function()
    {
        $(window).off('beforeunload', o.unload);
 
         setTimeout(function(){
            $(window).on('beforeunload', o.unload);
        }, 2000);
    }
 
    this.init = function()
    {
         
        $(window).on('beforeunload', o.unload);
 
        $('a').on('click', function(){o.resetUnload});
        $(document).on('submit', 'form', function(){o.resetUnload});
        $(document).on('keydown', function(event){
            if((event.ctrlKey && event.keyCode == 116) || event.keyCode == 116){
                o.resetUnload;
            }
        });
    }
    this.init();
}
 
$(function(){
    if(typeof window.obUnloader != 'object')
    {
        window.obUnloader = new Unloader();
    }
})
 

umer

Депрессивный
Joined
Jun 24, 2017
Messages
399
Reaction score
39
@Areot, Что, куда писать? XD
 

IrynaM

Member
Joined
Sep 29, 2013
Messages
6
Reaction score
0
I'm happy to help, but I don't speak Ruski (I think the title says "Помогите" which means "help" in Russian, though). Can you translate what the issue is or post a link so I can better understand what's going on?
 
Status
Not open for further replies.
Top