Hello guys,
I would like to know if it is possible to write a JavaScript code that would allow to ask the website visitor to let a feedback before closing the window or leaving the site.
Let's call it a consumer review script, my only requirement is to make it as quick and light as possible in such way it does not annoy visitors.
Any advice ?
Thank you.
JavaScript consumer review script on site leaving
Hi,
Yes it is possible to write a JavaScript code that would allow to ask the website visitor to let a feedback.You can contact with a JavaScript expert nearby yours.
JavaScript consumer review script on site leaving
Â
Hi,
Yes it is possible to do it, but the best choice is to use Server-Side Script Tools like PHP, Perl, Python etc… for more safety and liability.
Also you can find some website that can integrate this kind of services with your site. This will help you to avoid many troubles that you will face if you decide to make your own feedback system.
JavaScript consumer review script on site leaving
There are a number of ways, the easiest one is to use window prompt. The example shows a general concept.
var message=prompt("Please give us your feedback here,"Feedback Window");
if (message!=null && message!="")
 {
alert('Hello ' + message + ', Good to meet you');
}
Â