Menu
Hello,
I have an Iframe which opens everytime site is loaded. I wonder what is the best way to open iframe only once per session that user does not have to constantly closing iframes everytime he opens the site.
Here is the script with which is the iframe opened.
document.observe(‘lightview:loaded’, function() {
Lightview.show(‘my_iframe’);
});
I would like to have something like the following:
if( sessiona_check != current_session){
document.observe(‘lightview:loaded’, function() {
Lightview.show(‘my_iframe’);
});
}
Thanks in advance.