Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/focus-initial-osk-javascript.html
diff options
context:
space:
mode:
Diffstat (limited to 'tests/focus-initial-osk-javascript.html')
-rw-r--r--tests/focus-initial-osk-javascript.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/focus-initial-osk-javascript.html b/tests/focus-initial-osk-javascript.html
new file mode 100644
index 0000000..51ab5c0
--- /dev/null
+++ b/tests/focus-initial-osk-javascript.html
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8">
+ <title>Focus OSK test case</title>
+ </head>
+ <body onload="javascript: document.f.q.focus()">
+
+ <p>This page will be loaded focusing on the input field. You
+ can click the "Click me!" button to focus it again after
+ loosing the focus by clicking outside. OSK should appear
+ everytime the input field has the focus.</p>
+
+ <form action="." name="f" target="_top">
+ <input maxlength=2048 name="q" value="" style="height: 200px; width: 500px;"/>
+ <input type="button" value="Click me!" style="height: 200px; width: 200px;" onclick="javascript: document.f.q.focus()" />
+ </form>
+</body>
+</html>
+