1<!DOCTYPE html> 2 3<html> 4<head> 5 <style> 6 .container { 7 width: 700px; 8 height: 2000px; 9 margin: 0 auto; 10 background-color: silver; 11 } 12 </style> 13 <script> 14 function doTest() 15 { 16 window.scrollTo(0, 400); 17 window.resizeTo(1000, 600); 18 } 19 window.addEventListener('load', doTest, false); 20 </script> 21</head> 22<body> 23 <div class="container"></div> 24<pre id="layers">Layer tree goes here</p> 25</body> 26</html> 27