hi there, i am using a sliding bar on my homepage.i want to set focus on a textbox but document.getElementById("userid").focus() is givingerror,because textbox is invisible on page load. is there any way to do this? Thanks in advance.
Jump to Post
Thank a lot for your reply, but that is what i was asking.
You wait for the onload event to occur. But in case that textbox doesn't have its display property set to 'none'. …
All 5 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.