• Resolved saznajnovo

    (@saznajnovo)


    Hi,
    I am using old version of plugin, and I need one little feautre: when user click on Close button, I want to redirect him to specific web url. Is this possible?
    I am found in code
    var click_close_modal
    but I do not know how to add
    window.location.href = "http://stackoverflow.com";
    in that array.
    Little help? Thanks 🙂

    https://wordpress.org/plugins/yeloni-free-exit-popup/

Viewing 1 replies (of 1 total)
  • Thread Starter saznajnovo

    (@saznajnovo)

    Ok, I found way:

    function yel_setCookieAndCloseModal(modal_id, cookie_message)
    		{
    			return function()
    			{
    			yel_docCookies.setItem("yelModalCookie", cookie_message);
    			yel_javascript_overlay(modal_id);
    			window.location.href = "http://stackoverflow.com";
    			}
    
    		}

    So if anyone want the same, this is solution.
    And yes, best of all: plugin first set cookies etc. and then redirect 🙂

Viewing 1 replies (of 1 total)

The topic ‘Redirect on click close button?’ is closed to new replies.