Ticket #4200: focus-initial-osk-javascript.html

File focus-initial-osk-javascript.html, 788 bytes (added by humitos, 11 years ago)

Grab the focus at startup

Line 
1<!DOCTYPE HTML>
2<html>
3    <head>
4        <meta http-equiv="Content-type" content="text/html; charset=utf-8">
5        <title>Focus OSK test case</title>
6    </head>
7    <body onload="javascript: document.f.q.focus()">
8
9        <p>This page will be loaded focusing on the input field. You
10           can click the "Click me!" button to focus it again after
11           loosing the focus by clicking outside. OSK should appear
12           everytime the input field has the focus.</p>
13
14        <form action="." name="f" target="_top">
15            <input maxlength=2048 name="q" value="" style="height: 200px; width: 500px;"/>
16            <input type="button" value="Click me!" style="height: 200px; width: 200px;" onclick="javascript: document.f.q.focus()" />
17        </form>
18</body>
19</html>
20