Use JavaScript to place cursor in a Chrome text input element

Posted by Samuel on Stack Overflow See other posts from Stack Overflow or by Samuel
Published on 2010-05-18T04:52:43Z Indexed on 2010/05/18 5:00 UTC
Read the original article Hit count: 233

I've been working on sending text to an input element in Chrome and I noticed that, unlike in IE or FF, calling .focus() does not put the cursor in the text area. So does anyone know of an alternative for placing the cursor on a Chrome input element?

© Stack Overflow or respective owner

Related posts about google-chrome

Related posts about text-input