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

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

Grab the focus on click

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>
8
9        <p>This page will be loaded without focusing anything and after clicking
10           the "Click me!" button the focus will be taken to the input field and
11           OSK should appear</p>
12
13        <form action="." name="f" target="_top">
14            <input maxlength=2048 name="q" value="" style="height: 200px; width: 500px;"/>
15            <input type="button" value="Click me!" style="height: 200px; width: 200px;" onclick="javascript: document.f.q.focus()" />
16        </form>
17</body>
18</html>
19