HighDots Forums  

Re: onFocus problema

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: onFocus problema in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jerome Bei
 
Posts: n/a

Default Re: onFocus problema - 05-02-2005 , 11:09 AM






acglag (AT) gmail (DOT) com wrote:
Quote:
I am not having that problem but, to be safe, you could modify your
function to set focus to the object being passed in:

function doSomething(objSender) {
objSender.value = 'abc';
objSender.focus();
}

Hope that helps...
I have tried that out, it doesn't seem to work. In fact, the object
*has* the focus, only because the object value is changed afterwards,
you don't see the cursor anymore. (Just try to type some additional text
into the second input field after switching with tab).

(Tested with IE6)

--Jerome


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.