Mike Smith Posted June 2, 2009 Share Posted June 2, 2009 Hi everyone, I am working with the "sexy alert box" found here and have the code below, which pops up the sexy alert box on every page load. <script type="text/javascript"> function test() { Sexy.alert('Hello world!'); } window.onload=test; </script> My problem is that I only want that code to show on the FIRST load for the user and every page after that it should not be showing. This will be the first time I've worked with cookies so I am a bit confused as to what to do with this code and where to edit things. Any help I receive is greatly appreciated Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.