Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Gábor Papp
Added: May 30, 2018 8:29 PM
Views: 7
Tags: no tags
  1. <script>
  2. $(function() {
  3.     document.domain = 'mlsz.hu';
  4.     window.ScrollToTop = function(){
  5.         $('html,body', window.document).animate({
  6.             scrollTop: '0px'
  7.         }, 'fast');
  8.     };
  9. });
  10. </script>
  11. <a href="javascript:;" onclick="window.parent.ScrollToTop();">CCC</a>
  12. <a href="javascript:;" onclick="ScrollToTop();">DDD</a>