Re: page onload/refresh by Evertjan
Evertjan
Tue Apr 08 15:06:39 CDT 2008
Mike wrote on 08 apr 2008 in microsoft.public.inetserver.asp.general:
> Is there a way to determine if a page was refreshed? I have a function
> that is called when the page loads, but when the user refreshes the
> page it calls the function again. Is there a way to call the function
> only when the page initially loads? I don't want it to load when the
> user clicks the refresh button.
If you mean a serverside function, as you should in this NG:
Yes, look for the referrer.
This is not serverside foolproof, as you use a browser header.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)