I need to open a servey page when a user leave site.I am doing this by opening a popup window using javascript function onbeforeunload. but there is problem that 90% of popup is blocked by browsers.is there any solution for it?

I think the best aproach may be using a popup message asking the user to fill out a survey before leaving, and loading the survey unto the same page the user is seeing. If the user decides to stay, he'll fill in the survey, else, close the page.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.