Display A Popup Only Once Per User

HTML:

jQuery code:

jQuery(document).ready(function(){
		
		if(localStorage.getItem('popState') != 'shown'){
			jQuery('#wrap-banner').css({
				'display':'block'
			});
			localStorage.setItem('popState','shown')
		}	
		
		jQuery('#close-offer').click(function(){
			jQuery('#wrap-banner').hide();
		});
	}); 

Leave a Reply

Your email address will not be published. Required fields are marked *