相關範例程式如下

<html> <head> <script language="javascript"> function cursor2last() { var r = event.srcElement.createTextRange(); r.collapse(false); r.select(); } </script> </head> <body> <form action="" type="Post"> <input type=text name=text2 value="123456" onfocus="cursor2last()"> </form> </body> </html>

參考小舖中Bryan大大提供的程式碼

http://www.blueshop.com.tw/board/show.asp?subcde=BRD20080908184657AI8&fumcde=FUM20041006161839LRJ

相关文章:

  • 2022-12-23
  • 2022-01-24
  • 2021-10-11
  • 2021-07-31
  • 2021-08-25
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
猜你喜欢
  • 2022-12-23
  • 2022-03-03
  • 2021-06-07
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
  • 2021-07-24
相关资源
相似解决方案