javascript - document.getElementById("ID").focus() + Google Chrome -


document.getelementbyid("id").focus() not work in google chrome. there alternative? thank you.

if you're trying focus can't focused might need add tabindex:

<span id="something" tabindex="0">something</span>  document.getelementbyid("something").focus() 

Comments

Popular posts from this blog

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -

openssl - Load PKCS#8 binary key into Ruby -