function get_value(id) { var value = document.getElementById(id).value; alert(value); }
ScriptManager.RegisterStartupScript(Page, typeof(Page), "message", "javascript:get_value('"+ txt_name.ClientID +"');", true);
document.write(isNaN("Vishal")+ "</br>"); document.write(isNaN("2013/12/10")+ "</br>"); document.write(isNaN(123)+ "</br>");
protected void Page_Load(object sender, EventArgs e) { Session["Name"] = "Vishal"; }
function access_session_value() { var name = "<%=Session["Name"]%>"; alert(name); }
function get_url_port() { alert(location.port); }
function get_current_date() { var date = new Date(); alert(date.getDate()); }
function get_current_year() { var date = new Date(); alert(date.getFullYear()); }
function replace_word() { var text = "Vishal Kumar"; var result = text.replace("Kumar","Neeraj"); alert(result); }
var str = setInterval(function(){start_timer()},3000); function start_timer() { alert("Hello"); }