Refresh Scrolled WebView

The webviewer can be very useful to extend the functionality of apps when you use your own html files in assets or on the virtual sdcard. one issue that I have found when trying to refresh your page is that it does not return to the top of the page if it has been scrolled. This doesn't seem to be resolved with pure javascript options such as window.scrollTo, although it may work with a jquery solution.  Another method I have employed, which works for "static" html pages, is to use two copies, and to alternate between each one when calling the webviewer to display the page. The following blocks should help to illustrate the approach (in this example the html files are stored in the assets folder for the app, hnece the use of TaifunTools extension and PathToAssets):

BLOCKS












Credits: