Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSF scroll bar at the top of the page

I was wondering how to make the scroll bar of the browser. go to top of page. I am developing a registration screen that is too big, and it contains some fields that are needed. It displayed an error message to the user if the required fields are not informed. The problem is that the scroll bar does not go up, and I want her to go to the top of the page. I'm using Primefaces and JQuery, but no this working.

like image 949
Alfaville Avatar asked Feb 14 '13 19:02

Alfaville


1 Answers

<div id="msg">

Content page

 onclick="javascript:window.location='#msg'"
like image 74
Alfaville Avatar answered Oct 09 '22 12:10

Alfaville