Presenting a "Good-bye" Message Without Popups Using JavaScript
By Will Bontrager2005-03-29
Presenting a "Good-bye" Message Without Popups
The proliferation of popup blockers and ad removal software has eroded those income producing methods for many web site publishers. And it's only getting worse.
Popup boxes of information that pop up over the contents of a page (part of the page, not in a separate window) are also being targeted by "blocking" software.
Here is a method that can be used to present a final web page, a "good-bye" page, to site visitors after they click on a link to a page on another (or your own) web site.
When a link is clicked, the new page opens in a new window (or in a new tab). Immediately after the new window opens, the original window or tab loads the good-bye page.
The visitor now has a window or tab with the new page, and also one with the good-bye page. The good-bye page might contain messages such as an invitation to subscribe, to buy, to take a survey, or simply to convey best wishes for the visitor's continued health and happiness.
No popup is required.
The new window or tab contains the web page the visitor asked for.
The old window or tab silently loads another web page in the background.
Here's how to implement it.
Tutorial Pages:
» Presenting a "Good-bye" Message Without Popups
» The JavaScript In the HEAD Area
» The Attributes In the Anchor (Link) Tag
» Try It
Copyright 2004 Bontrager Connection, LLC
