I recently downloaded a DHTML implementation of a Modal window from Submodal
Sample demo can be seen here
I know how to implement it,but my problem is everytime a user visits the page using a back button or a link on the page in the same domain, it still pops up. I need help in getting the script to detect that it has displayed the Popup in the current browser session once and does not need to do it again unless the user closes and re-opens the browser.
1: Write a body onload or page onload script that launches the Submodal DHTML popup function and writes a cookie
2: When the page loads next time, it check to see if the cookie was created and does not call the Submodal DHTML again until the browser is closed
I have seen some popups that have a check box "do not display this next time i log on"