Ant Warp

http://fred.dsimprove.org/sourcecode

Reduce the height of this window and double-click on the page... again and again.
This script makes you jump from top of page to bottom and back, and forth, etc...

Note: you can replace window.location with parent.location in this script. It usually gives the strictly same result, except when this page is loaded into a frame or an iframe. In such case, window.location makes antWarp work on the frame content, without altering the rest of the window/document (that's the expected result), while parent.location leaves the parent document to jump fully into this one. Check out my 'leZut' script too.

Note: If you see a button labelled "Dive In" hereabove, click on it ! This script is likely to go wrong in an iframe, if the referer page uses it too (which is the situation on my personal website).


<head>
  <style type="text/css">
  <!--
    a       {text-decoration: none;}
    a:hover {text-decoration: underline;}
  -->
  </style>
  <script language="javascript">
  <!--
    var aw_where ;
    function antWarp() {
      if (aw_where=="#bottom")
        aw_where="#top";
      else
        aw_where="#bottom";
      window.location = aw_where ;
      }
  -->
  </script>
</head>
<body onDblClick="antWarp();">
  <h2>Ant Warp</h2>
  <a href="http://fred.dsimprove.org/__off/sourcecode"
     target="winFredSource">http://fred.dsimprove.org/__off/sourcecode</a>
  <p>Reduce the height of this window and double-click on the page... 
    again and again.<br>
    This script makes you jump from top of page to bottom and back, and forth, etc...</p>
  <a name="bottom"></a>
</body>