Flip ahead browsing with Internet Explorer

You can control Internet Explorer’s flip ahead feature by adding next and previous links in the head section of your page. Users can then browse your website by flipping forwards and backwards through the pages.

The HTML

To specify a next and previous page to flip through, to add these lines in the head section of your document.

<link rel="next" href="/page1.php"/>
<link rel="prev" href="/page3.php"/>

In the above example the user can go back to page1.php or forward to page3.php using the flip feature.

WordPress

To have WordPress automatically generate these links add this code to the header.php theme file:

<? $post = get_previous_post();
if (!empty( $post )): ?>
<link rel="prev" href="<?php echo get_permalink($post->ID); ?>"/>
<?php endif; ?>

<? $post = get_next_post();
if (!empty( $post )): ?>
<link rel="next" href="<?php echo get_permalink($post->ID); ?>"/>
<?php endif; ?>

Further Reading

Categories

Tags

Social