Q: how to make page up link how to make page up link
i have to make link in my site when user click it shows a top view of site "i mean it goes to header of my site"

A: You can use # as "URL":
<a href="#"> Go Up <a/>

No JavaScript required.

A: $(function() {
    $('a#top').click(function() {
        $('html,body').animate({'scrollTop' : 0},1000);
    });
});

Test it here : http://jsbin.com/ucati4

A: What about giving your header some id (e.g., 'header') and making a link to it (<a href="#header">go up</a>)? Simple enough.
