在JavaScript中移动鼠标指针 [英] Move mouse pointer in JavaScript

查看:250
本文介绍了在JavaScript中移动鼠标指针的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以移动鼠标以使其位于使用JavaScript的文本输入内?

Is it possible to move the mouse so that it is positioned inside a text input using JavaScript?

推荐答案

我不知道知道移动实际渲染的鼠标,但是你可以将焦点设置为元素吗?

I don't know about moving the actual rendered mouse, but could you just set the focus to the element?

document.getElementById('the_text_input_id').focus()

这篇关于在JavaScript中移动鼠标指针的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆