<html>
<body>
  <a href="#test_content" id="test_link">Click me.</a>
  <span id="test_content">This is content.</span>
  <script type="text/javascript">
    onload = function() {
      var a = document.getElementById('test_link');
      a.click();
    }
  </script>
</body>
</html>
