文本框的SelectionDirection属性

 

代码实例:

 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>test</title>
</head>

<body>
<script>
    function AD() {
        var control=document.forms[0]['test'];
        var Direction=control.selectionDirection;
        alert(Direction);
    }
</script>

    <form>
    <input type="test" name="test">
    <input  type="button"  value="点击一下"   onclick="AD()">
    </form>

</body>
</html>

 

  效果:

文本框的SelectionDirection属性

2017-09-02   23:56:57

 

相关文章:

  • 2021-04-19
  • 2022-12-23
  • 2021-10-07
  • 2021-12-07
  • 2021-11-13
猜你喜欢
  • 2021-05-24
  • 2021-10-14
  • 2021-12-09
  • 2021-09-19
  • 2021-10-31
  • 2021-12-14
  • 2021-10-31
相关资源
相似解决方案