Is it possible to have a small page load (saying thanks for visiting etc.) when the user closes my website?
Pop-ups are generally hated by everyone, even if it is just to say thank you.
Just a warning.
and insert in the body tag:
not sure. try it.
I tried it but it didn't work.
Sorry i mistyped 'onUnload'
(working example @ http://www.geocities.com/cppforlife/projects/html/thankyou.html)
code above checked in IE and worked properly..
Also replace 'panel.html' with url of you thenk you page.
If you want to change size of the window and other attributes add third argument to open function like below
var win=window.open("panel.html", "win", "left=20,top=20,width=500,height=500");
Thanks a lot