Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

onchange event

Status
Not open for further replies.

JackD4ME

Programmer
Jun 4, 2002
228
US
I am trying to get the most basic of things accomplised: get a vbscript sub to give me a msgbox. I am trying to call the sub from a selectbox. I keep getting nothing and it is driving me nuts! The code is below.

<SCRIPT LANGUAGE="VBScript">
Sub ez_onchange
msgbox "hello"
End Sub
</script>

<select name=ez>
<option value="">Please Select</option>
<option value="1">1</option>
<option value="2">2</option>
</select>
 
Turns out the problem is with Firefox 2.0 not displaying it. When I switch to IE Tab the msgbox displays.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top