Magento Continue Shopping Button
The following will ensure that when the continue shopping button is pushed whatever page you have currently been on it will just take you back one page
<button type=”button” title=”<?php echo $this->__(‘Continue Shopping’) ?>” class=”button btn-continue” onclick=”history.go(-1); return false;”><span><span><?php echo $this->__(‘Continue Shopping’) ?></span></span></button>
Read More