F
Frances Valdes
I'm a newbie.
I'm trying to use asp and javascript to put text into a text box when I put
a mouse over a button and a web form. On page load I have used
"Button1.Attributes.Add("onmouseover", "javascript:form1.TextBox1.text='this
works')"
Nothing happens when I put the mouse over. I can use the same script to
change the background colour of the document or to raise a javascript alert
box. However I cannot access a textbox - I've tried to make it invisible and
this doesn't work either. I should mention that I'm using visual studio.net
and putting the code in the aspx.vb file.
Please can someone let me know why I can't have access to the textbox.
Thanks
I'm trying to use asp and javascript to put text into a text box when I put
a mouse over a button and a web form. On page load I have used
"Button1.Attributes.Add("onmouseover", "javascript:form1.TextBox1.text='this
works')"
Nothing happens when I put the mouse over. I can use the same script to
change the background colour of the document or to raise a javascript alert
box. However I cannot access a textbox - I've tried to make it invisible and
this doesn't work either. I should mention that I'm using visual studio.net
and putting the code in the aspx.vb file.
Please can someone let me know why I can't have access to the textbox.
Thanks