blob: 5c0d123cf1c9e660c98969696a992829a5afc8ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
<html>
<head>
<title>Input mode Switching</title>
<script type="text/javascript">
//<![CDATA[
function setFocus() {
document.getElementById("text").focus();
}
//]]>
</script>
</head>
<body onload="setFocus();">
<p>
Run with <code>scripts=on</code> and <code>strict-focus=off</code>
<ol>
<li>If page is loade, vimb should be in input mode.</li>
<li>Set <code>strict-focus=on</code> and reload page. Vimb should keep
in normal mode</li>
<li>Independent from the <code>strict-focus</code> should vimb switch
to input mode if the button is clicked</li>
</ol>
</p>
<form action="#">
<div>
<textarea name="text" id="text" rows="11" cols="50"></textarea><br/>
<input type="text" name="field1"/><br/>
<input type="button" value="Focus Textarea" onclick="setFocus();"/><br/>
<input type="text" name="field2"/>
</div>
</form>
<p>
Also the following element using <code>contenteditable="true"</code>
should switch vimb into input mode on click.
</p>
<div contenteditable="true" style="width:50%;height:3em;border:1px solid #000">
Clicking this element using contenteditable="true" should
switch vimb into input mode too.
</div>
</body>
</html>
|