JavaScript Editor Ajax software     Free javascripts 



Main Page

// display navigation if necessary
if ($disp_nav == true)
{
echo ‘<a href=”catalog.html”>Visit our catalog page!</a>’;
}
}
?>
5.
This is the moment of truth. Load
http://seophp.example.com/catalog.html
, and click
the popup link. No navigation should show up. If you get to the popup page through Google,
Yahoo!, or MSN, or if you load
http://seophp.example.com/popup.php
directly from the
address bar of your browser, the navigation link should appear (see Figure 6-2).
6.
Now is a great time to test the RefControl Firefox plugin mentioned in Chapter 2. This plugin
allows you to display and modify REFERER information. Install the plugin and navigate to
http://seophp.example.com/catalog.html
. In the page, click the link that opens the
popup window, and note the HTTP REFERER displayed in the status bar (see Figure 6-3). You
can see that the catalog link doesn’t show up when the popup is opened as a result of naviga-
tion from within your site.
Figure 6-2
126
Chapter 6: SE-Friendly HTML and JavaScript
c06.qxd:c06 10:55 126


JavaScript Editor Ajax software     Free javascripts