javascript - How to show pop-up then user close page use js -
i have broblem.
situation - user first time visited in site. user want close page (not go anover page, close). site have pop comprising offer discounts.
i need show pop befor user left site.
use onbeforeunload method.
window.onbeforeunload = function(){ return 'your message here.'; };
Comments
Post a Comment