Its OK I have found the answer using jQuery – sorry for the bother… but if anyone else is interested here it is.
Note: I am no programmer, web developer so please forgive and miss descriptions
If anyone else need to add a back button to the result page that take the visitor to the previous page without using the browser back button.
Add this to the content template HTML, View section (not the java-script section).
<script type="text/javascript">
jQuery(document).ready(function($){
$('.back-results').click(function(){
if(document.referrer.indexOf(window.location.hostname) != -1){
parent.history.back();
return false;
}
});
});
</script>
Change the .back-results in the above to the class you have assigned o your button.
Done.