I have textbox in one of my forms and i want to call a javascript function from a javascript file...
My code is
this.txtbox.Text = "";
this.txtbox.Location = new Point(10, 20);
this.txtbox.Size = new System.Drawing.Size(200, 100);
this.txtbox.Multiline = true;
this.Controls.Add(txtbox);
this.txtbox1.Text = "";
this.txtbox1.Location = new Point(220,100);
this.txtbox1.Size = new System.Drawing.Size(100,100);
this.Controls.Add(txtbox1);
And my javascript.js file contains a function
function alertMsgLength() {
alert("a");
}
How to call alertMsgLength() function to my textbox,
this.txtbox.OnKeyPress=?
this.txtbox.OnKeyDown=?
Any suggestion...