OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <meta charset="utf-8"> | |
5 <style> | |
6 input { | |
7 width: 200px; | |
8 font-size: 64px; | |
9 } | |
10 </style> | |
11 </head> | |
12 <body> | |
13 <input dir="rtl" value="[[مقاله]]"> | |
14 <p> | |
15 The last character (and only the last character) should be | |
16 selected in the text box above. | |
17 </p> | |
18 <script> | |
19 var el = document.getElementsByTagName('input')[0]; | |
20 el.setSelectionRange(0, 1); | |
21 </script> | |
22 </body> | |
23 </html> | |
OLD | NEW |