The use of  exit pops and modal alerts can dramatically increase your revenue per visitor if used right. These are good extras you can add to your LP’s to engage the visitor when they first arrive on, or exit your page. These aren’t allowed on all traffic sources, so make sure it’s allowed before using them.

Let’s look at a few examples to get you started.

Intro Alerts

Here is an example webpage with an intro pop/alert message using jQuery. This is a very basic use of the ‘dialog’ function in jQuery. Click here to see this in action.

See the code below:

<!doctype html>


This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the ‘x’ icon.

You can change the alert message by editing the text in the above code.

To get a little fancier, we can use a basic modal alert which dims out the background and prevents the user from interacting with the page until it’s closed. Click here to see this in action.

See the code below:

<!doctype html>


Adding the modal overlay screen makes the dialog look more prominent because it dims out the page content.

Sed vel diam id libero rutrum convallis. Donec aliquet leo vel magna. Phasellus rhoncus faucibus ante. Etiam bibendum, enim faucibus aliquet rhoncus, arcu felis ultricies neque, sit amet auctor elit eros a lectus.

The above examples show how this works in an entire webpage. Obviously, you want to add the code to your own LP’s. To do this, you just need to strip out the code parts and add them to your page. For example, on the first alert message, you would put this code in the head section of your HTML:


Then in the body put this:

This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the ‘x’ icon.

Those alerts are nice, but we can spice them up a little! An easy way to do this is to use the jQuery ThemeRoller. The easiest way to learn this is to play around changing colors. Say I wanted to change the header background color of our modal window. I would just select the ‘header/toolbar’ area, then the color field and change it:

Once you change the color, you’ll see it reflected in the examples down the middle of the page. To see what it will look like in our modal window, click the ”open dialog’ button under the dialog section. You can customize almost anything from the fonts to colors and borders.

Once you’re satisfied with the look, click the ‘download theme’ button. In the zip file you download, you’ll only need one file. Inside the CSS folders, take the file named jquery-ui-1.9.2.custom.css and put it in the root of your LP folder.

Then, in your LP, change this line:


To this:


Ideas for use:

The classic use of an intro alert message is to call attention to something that would make the user want to stay on the page. For example:

“Special deals today only”
“You have a new message”
“Only x left in sock”

This could potentially be used in any niche, and can really increase your LP CTR.


Popunders are windows that pop under your LP. This example uses a popunder when someone clicks anywhere on your lp. Think about the potential with this: you ccould convert visitors on not one, but two offers. Click here to see an example. In this example, a popunder (going to Google) will open when someone clicks anywhere on the page or on my link.

Check out the code:

<!doctype html>

Click anywhere on the page, or the link below to see the exit popunder.


This is the script in an HTML page. You also need a file in your LP directory called jquery.popunder.js which looks like this:

function jsPopunder(sUrl, sName, sWidth, sHeight) {
    if (typeof(sName)===null || sName === '') sName = Math.floor((Math.random()*1000)+1);

    sWidth = (sWidth || screen.width);
    sHeight = (sHeight || screen.height); sHeight = sHeight-122;

    var sOptions = 'toolbar=no,scrollbars=yes,location=yes,statusbar=yes,menubar=no,resizable=1,width='+sWidth.toString()+',height='+sHeight.toString()+',screenX=0,screenY=0,left=0,top=0';

    // create pop-up from parent context
    var _parent = (top != self && typeof(top.document.location.toString())==='string') ? top : self;
    var popunder =, sName, sOptions);
    if (popunder) {
        if (navigator.userAgent.indexOf('MSIE') === -1) {
            popunder.params = { url: sUrl };
            (function(e) {
                with (e) {
                    if (typeof window.mozPaintCount != 'undefined' || typeof navigator.webkitGetUserMedia === "function") {
                        try {
                            var poltergeist = document.createElement('a');
                            poltergeist.href = "'about:blank').close();document.body.removeChild(poltergeist)";
        try{ opener.window.focus(); }catch(err){}

you can download the script here

To change the URL the pop under opens, change the ‘’ in this line in the HTML document:


Example uses:

A popunder can be used effectively in almost any niche. You could offer someone ‘one more chance at a deal’, or simply pop a related offer. Be creative here! Try popping related offers, collecting opt-ins, or showing an offer wall.

Get creative with these tricks. You can do a lot with them!

Share This Post...Share on FacebookTweet about this on TwitterShare on LinkedInPin on PinterestShare on RedditShare on StumbleUponBuffer this page