I can think of several ways. 1, have your onload function write a cookie with an expiry of X hours in the future. If the cookie is present already, don't execute the code.
2, use server side sessions and use the server scripting language to determine if the onload function is even called/defined with and if statement etc etc etc BTW, this is not really a greybox question - you should probably be asking it in the javascript lang group or in whichever server scripting language you use's group. -- Tyler Style http://malthusian-solutions.com http://nirdvana.com meerkat wrote: > <script type="text/javascript" language="javascript"> > > AJS.AEV(window, 'load', function() { > if(getWorkOffline() == 0) > { > > GB_show("MINI SYNC", "http://localhost/Impact Gears Offline/ > index_DB_Sync.html",350,250); > } > > }); > > </script> > > Hello, > > I have the script above which is working. However, I want the greybox > to load only the first time the page is loaded (in a session - not > sure if these exist in client-side programming?). > Is there a way to do this? > Thanks, > meerkat --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "GreyBox" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/greybox?hl=en -~----------~----~----~----~------~----~------~--~---

