Controlling Cursor Location on Web Pages

User avatar
BobH
UraniumLounger
Posts: 9368
Joined: 13 Feb 2010, 01:27
Location: Deep in the Heart of Texas

Controlling Cursor Location on Web Pages

Post by BobH »

I've done a few very simple web pages. I haven't yet needed to know this, but the need will come up soon.

Is it possible for the web developer to control the position of the cursor when a page is opened? If it is, how does one do it? Can it be done in simple HTML or does one need other resources to make it happen.

I want to position the cursor in a search box every time a given page is displayed so that the user can simply begin to enter the search argument. I've noticed that several commercial sites I visit do not place the cursor in the search box which, to me, is the most obvious place for it. For example, when one opens Amazon.com one almost always enters a search argument; so why don't they position the cursor there for the user's convenience?

:cheers: :chocciebar: :thankyou:
Bob's yer Uncle
(1/2)(1+√5)
Dell Intel Core i5 Laptop, 3570K,1.60 GHz, 8 GB RAM, Windows 11 64-bit, LibreOffice,and other bits and bobs

JoeP
SilverLounger
Posts: 2088
Joined: 25 Jan 2010, 02:12

Re: Controlling Cursor Location on Web Pages

Post by JoeP »

See if this helps - Auto focus in text box.
Joe

User avatar
BobH
UraniumLounger
Posts: 9368
Joined: 13 Feb 2010, 01:27
Location: Deep in the Heart of Texas

Re: Controlling Cursor Location on Web Pages

Post by BobH »

Thanks, Joe. I'll give that a try.
Bob's yer Uncle
(1/2)(1+√5)
Dell Intel Core i5 Laptop, 3570K,1.60 GHz, 8 GB RAM, Windows 11 64-bit, LibreOffice,and other bits and bobs