$('a[href=#top]').click(function(){
$('html, body').animate({scrollTop:0}, 'slow');
});
Perhaps?
More Related Contents:
- Download the text over image using jquery
- $(document).ready equivalent without jQuery
- How to tell if browser/tab is active [duplicate]
- jQuery – setting the selected value of a select control via its text description
- Persist variables between page loads
- Listening for variable changes in JavaScript
- Chrome Uncaught Syntax Error: Unexpected Token ILLEGAL [duplicate]
- JS replace not working on string [duplicate]
- jqGrid add new column
- What is the difference between setTimeout(fn, 0) and setTimeout(fn, 1)?
- Is it possible to check dimensions of image before uploading?
- javascript – How to make this code work? [duplicate]
- Userscript to wait for page to load before executing code techniques?
- In jQuery, what’s the best way of formatting a number to 2 decimal places?
- what’s the equivalent of jquery’s ‘trigger’ method without jquery?
- JQuery Number Formatting
- How do I get the content of a using jQuery?
- scrollTop animation without jquery [duplicate]
- Javascript – dumping all global variables
- Change the content of a div based on selection from dropdown menu
- Javascript: do an action after user is done scrolling
- Detect which form input has focus using JavaScript or jQuery
- Stop all playing iframe videos on click a link javascript
- XMLHttpRequest cannot load, No ‘Access-Control-Allow-Origin’ header is present on the requested resource [duplicate]
- jQuery – Create hidden form element on the fly
- jQuery: checking if the value of a field is null (empty)
- Sum numbers returns NaN
- How do you handle a form change in jQuery?
- lodash debounce not working in anonymous function
- a simple question on jquery closure