Click here to Skip to main content
15,881,742 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Whenever validation summary displays it has to got the top.


I tried the following scripts

XML
<script type="text/javascript">
    window.scrollTo = function (x, y) {
        return true;
    }
</script>


but it is not going to top

Thank you
Posted

1 solution

Do like below...
JavaScript
window.scrollTo(0, 0);
 
Share this answer
 
Comments
Manohar_manu 13-Aug-13 3:40am    
can i write this single line inside script?
Yes, only this single line. Nothing else.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900