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++ - Convert big endian to little endian when reading from a binary file -

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

unicode - Are email addresses allowed to contain non-alphanumeric characters? -