How get offsetTop value from webbrowser by id? RRS feed

  • Question

  • hi
    hi iam using vs 2005 sdk 6.0 for window mobile application.
     i want to scroll my browser control when it found text from search option.
    to do this i am trying following code but window mobile does not support offsetTop method as my code work.
    1. function scrollbrowser();
                          var x =  document.getElementById('found').offsetTop ;" +                         

    i am calling this message in onload event.

    i also try by following code

    but it can work for me.

    how i scroll web browser control by id of tag.

    both code is working in window's browser   but it can work in window mobile's web browser control.
    if i set use window.scroll(0,100) by this types by giving integer value it work but it can doing work with
    offsetTo method.

    can window mobile web browser  has alternative for that.

    please help me.
    • Moved by Harry Zhu Friday, January 15, 2010 4:23 AM (From:JScript for the .NET Framework)
    Tuesday, January 12, 2010 11:18 AM

All replies