Javascripts > Javascript Popups > Goodbye Popup Window
Script Title: Goodbye Popup Window
Description: Popup a goodbye window when someone leaves your site.
Example: Available
Copy the following code into your <HEAD></HEAD> tags.<script> /* Fair well window launcher script By Website Abstraction (http://wsabstract.com) Over 200+ free scripts here! */ function openpopup(){ //configure "changed the url and the window dimensions as desired window.open("http://www.java-scripts.net","","width=300,height=338") } function get_cookie(Name) { var search = Name + "=" var returnvalue = ""; if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) if (offset != -1) { // if cookie exists offset += search.length // set index of beginning of value end = document.cookie.indexOf(";", offset); // set index of end of cookie value if (end == -1) end = document.cookie.length; returnvalue=unescape(document.cookie.substring(offset, end)) } } return returnvalue; } function loadpopup(){ if (get_cookie('popped')==''){ openpopup() document.cookie="popped=yes" } } </script>
Enter your name and email address to have this script sent right to your Inbox for later viewing. First Name Last Name Email