|
Post by roguelantern on Apr 29, 2013 10:54:52 GMT -5
There are times I'd like to avoid using CLS, if possible, and rather have the output scroll to the bottom of the page each time the page is refreshed. So the user can just scroll up to see what the previous, off screen text says.
This seems to work natively with Firefox at least, but only up to a point with Mobile Safari (iPad). Seems to me that once there are enough rows(?) in the output page, the page no longer automatically scrolls to the bottom. One can scroll manually to the bottom of the page, of course, but this gets tedious when playing a text based game.
So... any ideas how to force scroll to bottom with Runbasic?
|
|
|
Post by meerkat on Apr 29, 2013 13:11:18 GMT -5
This is a browser problem.. Probably easiest to simply place the buttons at the top of the page.
However this JavaScript code should work:
<html> <head> <script> function moveWin() { window.scroll(0,10000); setTimeout('moveWin();',1000); } </script> </head> <body onLoad='moveWin();'>
|
|