Determine if Page Refreshed

K

Keith

First I would question why you want to do this. If they
get to the page by any means it should respond
appropriately, whether refresh or by link. This is a
stateless environment after all.

That being said...

I would take the approach of setting a session variable
that gets set the first time they hit the page:

<%
if session("NotTheFirstTime") = "" then
'write the onload
session("NotTheFirstTime") = true
end if
%>

then based on that variable write or don't write the
onload.

Of course, if the user can access the page from multiple
links and the onload is valid for each link, regardless of
how many times they hit the page, this won't work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top