javascript popups
- Started
- Last post
- 23 Responses
- fuzzygroove0
OK, before people get technical on my ass -
We're talking JS here, not PHP, JSP, or ASP.
Sessions don't exist in JS, only cooooooooookies. If you create a cookie, it lasts for x. x is a variable for an amount of milliseconds -
You want a popup to come up everytime someone hits the homepage or everytime someone visits within x?
if the latter, make the thing popup only on the homepage, if the latter, make the thing pop up only after the cookie is expired. if you don't know how to make the cookie expire, USE GOOGLE, IT'S GREAT!
- fuzzygroove0
the latter - the latter
dammit, now i'm the retard. ah well - time for another beeeer
- elwolverton0
yes, i am in fact retarded.
what I am looking to do, with JS and w/o cookies if possible:
have a page activate a popup window the first time I view it. but when I visit the page again, it will not activate the popup. I don't know when it should decide to work again, but I need it to not be so pushy that it loads the popup every time.