From df7b600506ab9cabba5f59834fc06a380074fa11 Mon Sep 17 00:00:00 2001
From: andi <andi@splitbrain.org>
Date: Sun, 17 Apr 2005 20:30:13 +0200
Subject: [PATCH] back to top button fixed #229 and #162

darcs-hash:20050417183013-9977f-398b04cd192ef7aac1cfe061ef1a46e15e574b86.gz
---
 inc/html.php | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/inc/html.php b/inc/html.php
index 0e1364316..435288688 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -171,9 +171,8 @@ function html_topbtn(){
   global $lang;
 
   $ret  = '';
-  $ret .= '<form class="button" method="get" action="#top" onsubmit="return svchk()">';
-  $ret .= '<input type="submit" value="'.htmlspecialchars($lang['btn_top']).'" class="button" />';
-  $ret .= '</form>';
+  $ret  = '<a href="#top"><input type="button" class="button" value="Back to top" onclick="window.scrollTo(0, 0)" /></a>';
+
   return $ret;
 }
 
-- 
GitLab