1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
2 | <html> |
---|
3 | <head> |
---|
4 | <meta content="text/html; charset=utf-8" http-equiv="content-type" /> |
---|
5 | </head> |
---|
6 | <body id="mybody"> |
---|
7 | <form action="#" onsubmit="return runTest();" method="get"> |
---|
8 | <iframe id="frame"></iframe> |
---|
9 | <input type="submit" accesskey="s" value="Submit" /> |
---|
10 | </form> |
---|
11 | <script type="text/javascript"> |
---|
12 | var data = "<!DOCTYPE html>" + |
---|
13 | "<html><body contentEditable='true'>type here and test the Alt+S shortcut</body></html>" |
---|
14 | |
---|
15 | var iframe=document.getElementById("frame"); |
---|
16 | var doc = iframe.contentDocument; |
---|
17 | doc.write( data ); |
---|
18 | doc.close(); |
---|
19 | |
---|
20 | function runTest() |
---|
21 | { |
---|
22 | alert('submitted'); |
---|
23 | return false; |
---|
24 | } |
---|
25 | </script> |
---|
26 | |
---|
27 | </body> |
---|
28 | </html> |
---|