PDA

View Full Version : Cookies...


dagaffer
01-12-2003, 07:05 PM
How would I get a page to pop up but only once. If the user returns to the page, it wont pop up again.
Thanx, Gaffer:thumbsup:

arnyinc
01-12-2003, 08:25 PM
Untested, but it should work.


<%
if request.cookies("first_visit")="no" then
response.write "<body>"
else
response.write "<body onload=""window.open('popup.htm')"">"
response.cookies("first_visit")="no"
end if
%>

dagaffer
01-12-2003, 09:40 PM
thanx, il test that out:thumbsup:

whammy
01-14-2003, 01:01 AM
Slight error:


<%
if request.cookies("first_visit")<>"no" then
response.write "<body>"
else
response.write "<body onload=""window.open('popup.htm')"">"
response.cookies("first_visit")="no"
end if
%>


;)