Hello everyone,
Quick question of the day: how to move the cursor on an area of my choice (ideally / id of my zone) when we click on a button ...
Thank you in advance :)
move cursor ...
-
- Profound User
- Posts: 20
- Joined: Mon Feb 04, 2019 10:56 am
- First Name: stephane
- Last Name: villeminot
- Company Name: alcyon france
- Country: France
- Contact:
-
- Profound User
- Posts: 24
- Joined: Fri Apr 13, 2018 4:06 am
- First Name: David
- Last Name: Baltromei
- Company Name: H. Gautzsch Firmengruppe
- Country: Germany
- Contact:
Re: move cursor ...
Hi,
you can add to the onclick event of the button this little JS:
document.getElementById("IdTextArea").focus();
https://www.w3schools.com/jsref/met_html_focus.asp
Hope this helps,
David
you can add to the onclick event of the button this little JS:
document.getElementById("IdTextArea").focus();
https://www.w3schools.com/jsref/met_html_focus.asp
Hope this helps,
David
-
- Profound User
- Posts: 20
- Joined: Mon Feb 04, 2019 10:56 am
- First Name: stephane
- Last Name: villeminot
- Company Name: alcyon france
- Country: France
- Contact:
Re: move cursor ...
perfect !!
thank you
thank you
Who is online
Users browsing this forum: Ahrefs [Bot] and 5 guests