Do not announce robot account token before account ID is available
[chromium-blink-merge.git] / chrome / test / data / find_in_page / end_state.html
blobbf8332ca8b8c95dd948992138b91e6463d44f6d9
1 <html>
2 <head>
3 <script>
4 var focused_elem = "{nothing focused}";
6 function setFocusedElem(id) {
7 focused_elem = id;
8 updateLog();
11 function clearFocus() {
12 focused_elem = "";
13 updateLog();
16 function getFocusedElement() {
17 return focused_elem;
20 function updateLog() {
21 document.getElementById("log").innerHTML = "Focused element: " + focused_elem;
24 function selectLink1() {
25 clearFocus();
26 var sel = window.getSelection();
27 var range = document.createRange();
28 range.setStartBefore(document.getElementById('link1'));
29 range.setEndAfter(document.getElementById('link1'));
30 sel.addRange(range);
31 return "";
34 </script>
35 </head>
37 <body>
38 This is
39 a <a id="link1" href="http://www.google.com" onfocus="setFocusedElem(this.id)" onblur="clearFocus()">link</a>
40 to <a id="link2" href="http://www.google.com" onfocus="setFocusedElem(this.id)" onblur="clearFocus()">Google</a>.
42 <br><br><br>
43 <div id="log"><div>
44 </body>
45 </html>