popup message after value changed

I want to popup message after a server control is changed. I put a htmlinputhidden control on webpage and set "runat=server". When value of it changes, how to run javascript to popup message?
thank you in advance.
[222 byte] By [jasonli] at [2007-11-19 22:20:50]
# 1 Re: popup message after value changed
Just use the onchange event.

<input type="hidden" value="whatever" onchange="alert('It changed.');"
PeejAvery at 2007-11-8 0:22:56 >
# 2 Re: popup message after value changed
Thank you. But I have to say it doesn't work. Because I set the control to runat=server, and there is no onchange event for it.
jasonli at 2007-11-8 0:23:54 >
# 3 Re: popup message after value changed
Thank you. But I have to say it doesn't work. Because I set the control to runat=server, and there is no onchange event for it.
What do you mean, runat=server? That isn't JavaScript.
PeejAvery at 2007-11-8 0:24:52 >