I am a new html developer. I write an html script program to view a specific web site for a given URL. After a web page is loaded into the application view, i then use a scrollBy() function to automatically scroll the content of the web page. The scrollBy() function does not work after i open the URL in my application?
Here is my sample code, if somone can tell me what wrong with my sample program? Here is my html file:
-------------------------
Expand|Select|Wrap|Line Numbers
- <html> <head> <title>
- Web page auto scroll Test
- </title> </head> <script type="text/javascript">
- function pageScroll()
- {
- window.scrollBy(0,1);
- scrolldelay = setTimeout('pageScrol()',20);
- }
- </script> <body style='background-color:#FFFFFF' onload="startTime()"> <script type="text/javascript">
- var ContextWindow = window.open("http://search.yahoo.com/search?ei=utf-8&fr=slv8-i3752&p=scrolling%20issue&type=",
- '_main','width=100%,height=92%, position=bottom, resizable=0,scrollbars=auto,toolbar=0,status=0');
- pageScroll();
- </script> </body> </html>