Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

107
Vistas
Exit Intent in Mobile using javascrpt or jQuery

I tried modifying the plugin to show a modal popup when a website visitor leaves the page using haschange, but it still doesn't work. How to get it to work? I need help fixing it

 $(document).ready(function(e) {

    var exit_intent_popup_hash = 'b'
    window.location.hash = exit_intent_popup_hash
    window.history.back()

    setTimeout(function() {
        window.history.forward()
        $('.fel-modal-parent-wrapper').each(function() {

            var $this = $(this);
            var tmp_id = $this.attr('id');
            var popup_id = tmp_id.replace('-overlay', '');
            var trigger_on = $this.data('trigger-on');
            var exit_intent = $this.data('exit-intent');

            if ('automatic' == trigger_on) {
                if ('yes' == exit_intent && FelModalPopup_canShow(popup_id)) {
                
                    $(window).hashchange(function() {
                        if (window.location.hash !== `#${exit_intent_popup_hash}`) {
                            FelModalPopup_show(popup_id);
                            window.history.forward()
                        }
                    }, false);
                }
            }
        });
    }, 500);
});
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda