5 Copyright (c) 2015 The Chromium Authors. All rights reserved.
6 Use of this source code is governed by a BSD-style license that can be
7 found in the LICENSE file.
11 <meta name=\
"viewport\" content=\
"width=device-width, initial-scale=1\">
19 background-color: green;
20 -webkit-transform: translate3d(
0,
0,
0);
24 var xmlhttp
= new XMLHttpRequest();
26 function xhrOnReadyStateChange() {
27 if (xmlhttp
.readyState
==4 && xmlhttp
.status
==200) {
28 window
.location
= 'hello.html';
32 function xhrAndOpenHello(e
) {
33 xmlhttp
.onreadystatechange
= xhrOnReadyStateChange
;
34 xmlhttp
.open("GET", 'hello.html' , true);
41 first
.ontouchstart
= xhrAndOpenHello
;
45 <body onload='setup();'
>
46 <div id='first'
></div>