NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: ianburgess on August 24, 2012, 04:36:49 AM

Title: Scroll to top of form
Post by: ianburgess 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?