title: HTML DOM Target attribute self
body: <p>I have quite amount of fields on my registration page, but the error message will display only on the top of the page, i don wan client keep scroll up to see what is the error message when they key in something wrong on that field. May i know how can i use "target" or any other method for this case?</p>
  
  <p>Here is the example of my screen, the error message was actually display on the top of the screen when user key in something wrong, but user have to scroll up and check the error message, is there any method that i can use to focus/target/scroll up to view the error message? 
  <a href="https://i.stack.imgur.com/OHa50.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OHa50.png" alt="enter image description here"></a></p>
  
  <p>Here is my current screen sample code : <code>1</code> <a href="http://hostcode.sourceforge.net/view/3568" rel="nofollow noreferrer">SAMPLE</a><br/>P/s: i only do function for <code>username</code> field, when onblur on the username field it will run the javascript function</p>