| 
<?php
 <h2>Transaction Successfully</h2>
 <p>You will be redirected in <span id="counter">10</span> second(s).</p>
 <script type="text/javascript">
 function countdown() {
 var i = document.getElementById('counter');
 if (parseInt(i.innerHTML)<=0) {
 location.href = '<?php echo base_url(); ?>';
 }
 i.innerHTML = parseInt(i.innerHTML)-1;
 }
 setInterval(function(){ countdown(); },1000);
 </script>
 
 |