hi ...
welcome to TSDN ...
please post the code you are using and thet makes the problem ...
kind regards
Thanks a lot for responding immediately. Your help is greatly appreciated.
I just try to reproduce the code. I am not giving you the exact code since it seems too long and would be out of the scope of this problem. so i give you just a simple snippet that would make you understand my problem. thanks
Description of the code:
when i select an item from the select(combo) box the alert hi appears and when i click the button or press the button the alert hi appears again. but i need the alert hi to appear only once.
[HTML]<script type="text/javascript">
function myFunction() {
alert("hi");
}
</script>
<form>
<select name="state" onChange="myFunction()">
<option value="">select state</option>
<option value="state1">state1</option>
<option value="state2">state2</option>
</select>
<input type="button" name="myButton" value="Click Here">
</form>[/HTML]