i'm faced with a small problem.
i want to know when a user left my page.
in order to do so i call onunload function f.
in this function i load a image from my server and this way get a log in the iis.
here's the loading image code:
var myImage = new Image();
myImage.src = "http://192.168.10.65:8080/servlet1";
the problem is that the image is loaded only when i switch a page, when i do refresh or back it does not call it.
(the image is not cached or it would have not called for it every time i switch pages).
if i'll add a aleft in the function it will be called every time.