Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #19930

How to manage cursor?

Newsgroups comp.lang.javascript
Date 2013-05-24 11:26 -0700
Message-ID <3d37a9e7-b930-4e64-adf9-42e07c4e52ef@googlegroups.com> (permalink)
Subject How to manage cursor?
From justaguy <lichunshen84@gmail.com>

Show all headers | View raw


Hi,

I have two DIVs, one in the left and the other right.
More info:
*
left DIV (id of 'leftD') is empty by default, right DIV (id of 'rightD') has lots of contents.
* 
when a user scrolls down for the right DIV, and find one piece of content interesting something, say, content 8 (id of 'content8'), click on it (clickAction) and brings it to the top of the left DIV ('leftD').  No problem, so far so good.  

Issue:
However, the cursor does not go with the above action, that is, the screen remains the same (still at the bottom of the right DIV).  What could I do to make the cursor to move to the top of the left DIV? 
My attempt of adding the following statement,
document.getElementById('leftD').focus();
prior to clickAction
OR
after
has no effects.   

How to do it?

Many thanks.


Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

How to manage cursor? justaguy <lichunshen84@gmail.com> - 2013-05-24 11:26 -0700
  Re: How to manage cursor? Danny <dann90038@gmail.com> - 2013-05-24 12:00 -0700
    Re: How to manage cursor? justaguy <lichunshen84@gmail.com> - 2013-05-24 14:34 -0700
      Re: How to manage cursor? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-05-25 07:37 +0200
  Re: How to manage cursor? Dr.Kral@nyc.rr.com - 2013-05-24 15:20 -0400

csiph-web