Setting focus to textbox control using JavaScript
by
Narain_Siddharth
on
Nov 13, 2010
Category:
Javascript
|
Views:
308
|
Points:
25
|
Silver ★
|
|
|
1. Below code snippet is used to set the focus to the textbox control by using JavaScript
document.getElementById(“TextboxControlName”).focus(); 2. Using RegisterStartupScript in Code behind
Page.RegisterStartupScript("Focus", "<script language=""Javascript"" > document.getElementById("TextboxControlName").focus(); </Script>")
|
Like this code? Bookmark and Share:
|
|
|
|
No Response found!
|
|
|
|
|