| document.getElementById('console').appendChild(document.createTextNode(msg + '\n')); |
| var tf = document.getElementById('tf'); |
| if (window.eventSender) { |
| eventSender.mouseMoveTo(10, tf.offsetTop + 3); |
| document.execCommand("InsertText", false, 'P'); |
| document.execCommand("InsertText", false, 'A'); |
| document.execCommand("InsertText", false, 'S'); |
| document.execCommand("InsertText", false, 'S'); |
| This tests that you can set selection in an textfield contained in an anchor element even though we try to prevent selection from starting within anchor elements.<br> |
| <a href="javascript:void(0)"> |