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.
tapas.chand
0
Newbie Poster
Recommended Answers
Jump to PostThank a lot for your reply, but that is what i was asking.
Is there any way to call a javascript function after the textbox comes into picture?Yes.
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
jino
-1
Junior Poster
tapas.chand
0
Newbie Poster
Troy III
272
Posting Pro
tapas.chand
0
Newbie Poster
tapas.chand
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.