Back button and Top of page conflict error in code
I've got a problem with a back button and a GOTO TOP of page button.
From test.html I click on a link to open test2.html
* When I scroll down to the bottom of the page of test2.html and click on the' TOP' button link it goes to the top of the page which is fine
* BUT when you click on the 'BACK' button which part of a nav bar it goes to the bottom of the page instead.
* If I scroll up, the page and then click the BACK button it then goes to the previous page ie test.html
Not sure how to get around this as I need both a back button and link to go to top of page ??
Hope you can help
Tim
(I have just attached the second-page test2.html code below and not the page it goes back to which in the code goes back to test.html)
--------------------
<!doctype html>
<html lang="zxx">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Untitled Document</title>
!--Nav Bar Start-->
<a id="search-target"></a>
<li class="active-top-menu"><a HREF="javascript:javascript:history.go(-1)" class="dark-grey-panel">Back</a></li>
<!--Nav Bar End-->
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<!--copyright date start-->
<a href="#search-target">
<div class="font eventify-location-admin"><span style="color:#2499FB">- TOP</span></div></a>
<!--copyright date ends-->
</div>
</html>
----------------------
