diff --git a/lib/scripts/index.js b/lib/scripts/index.js
index 871993c11941c16e20ee89c51455452e46a2481d..4d082898a3e458df7286eae8675644e8fbbe2c6f 100644
--- a/lib/scripts/index.js
+++ b/lib/scripts/index.js
@@ -25,7 +25,7 @@ index = {
             var elem = items[i];
 
             // attach action to make the link clickable by AJAX
-            addEvent(elem,'click',function(event){ return index.toggle(event,this); });
+            addEvent(elem,'click',function(e){ return index.toggle(e,this); });
         }
     },
 
@@ -37,7 +37,7 @@ index = {
      * @author Andreas Gohr <andi@splitbrain.org>
      * @author Ben Coburn <btcoburn@silicodon.net>
      */
-    toggle: function(event,clicky){
+    toggle: function(e,clicky){
         var listitem = clicky.parentNode.parentNode;
 
         // if already open, close by removing the sublist
@@ -45,6 +45,7 @@ index = {
         if(sublists.length && listitem.className=='open'){
             sublists[0].style.display='none';
             listitem.className='closed';
+            e.preventDefault();
             return false;
         }
 
@@ -52,6 +53,7 @@ index = {
         if(sublists.length && listitem.className=='closed'){
             sublists[0].style.display='';
             listitem.className='open';
+            e.preventDefault();
             return false;
         }
 
@@ -80,8 +82,8 @@ index = {
             }
         };
         ajax.runAJAX(clicky.search.substr(1)+'&call=index');
+        e.preventDefault();
         return false;
-
     }
 };