NetTalk Central

Author Topic: Scroll to top of form  (Read 2887 times)

ianburgess

  • Full Member
  • ***
  • Posts: 119
    • View Profile
    • Email
Scroll to top of form
« on: August 24, 2012, 04:36:49 AM »
I have a memory form which contains several browse procedures such that the form is always longer than the browser window. The problem is that it opens partly scrolled down and the user always has to scroll to the top.

I have determined that the following code (on a button) will scroll the form to the top: p_web.Script('window.scrollTo(0,0);')

What I want to do is embed this code somewhere so the form automatically scrolls to the top on opening (having populated the browses), but I cannot find an embed that works.

Anyone got any suggestions as to where to embed?