Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Return to top

 

HTML
<script>
    var child = jQuery('<div/>', {
        'id': 'return-to-top'
    });
    child.html('<a href="#">Return to top</a>');
    child.on('click', function () {jQuery(window).scrollTop();});

    jQuery('#header').append(child);
</script>

...