Page 1 of 1

Javascript - close button/pop under

Posted: Tue Jan 11, 2011 4:25 am
by Monotoko
Hi guys,

A client of mine is interested in those marketing sites which come up with a dialog once you press the close button, it will come up with a dialog which has ok or cancel. I told him this isn't a good idea and would probably just frustrate his users.

What I am trying to do is just make it go straight to another page when you press the close button, just saying "hang on a moment, before you go we will offer you this..." which I think would be less intrusive, or maybe a pop-under saying the same thing if you close the page, is this possible instead? or does it have to be an annoying dialog box?

Re: Javascript - close button/pop under

Posted: Tue Jan 11, 2011 11:41 am
by Christopher
They are all annoying. I think the reason they use alert() style messages is that it gets around pop-up blockers.