Jump to content

Setting Cursor Position in Browser


Endrew

Recommended Posts

  • 3 months later...
Not obvious quite what you want, but html anchors might be what you want (as in somepage.html#top). If not, then maybe you want to use the onLoad function to place the focus on a particular form element, or to use the javascript scrollTo(x,y) function.

All depends what you're really trying to accomplish.
Link to comment
Share on other sites

  • 3 weeks later...
Ya' learn something new everyday! This is a pretty cool concept.

Updating Daniel0's code...

[code]<a name="anchor1" style="position:absolute; left: 20; top: 500;">anchor1</a>[/code]

This makes the anchor not a hypertext link. Rather, it is an anchor that can be accessed like [i]/index.htm#anchor1[/i].

------
Endrew, is this what you're trying to do, or are you trying to put a blinking cursor in an [b]input[/b] field (like Google does)?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.