View Single Post
  #2 (permalink)  
Old Dec 17th, 2006, 11:46
snow snow is offline
Reputable Member
Join Date: Jul 2006
Location: Scotland
Age: 22
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Alerts: Only one wanted - How to?

I don't think there's a way to do it between pages with JavaScript - that I can remember anyway... I think you'd need some kind of session.

On the same page, to make it pop up only once you could do something like...

Code: Select all
 function pop() {
  if (done!=1) {
        alert("hey you! eggburger! farts!");
    done=1;
  }
}
Just off the top of my head after I haven't used it for a while - so there are probably much better solutions out there!
Reply With Quote