问题
Can i use a .jsp file as a parameter for onChange in a dropdownlist? Like this :
<td><select name="transporter" onchange="debusTransporter.jsp">
回答1:
Answer is No.
Explanation
onchange
The onchange property sets and returns the event handler for the change event.
The term event handler may refer to:
- any function or object registered to be notified of events,
- or, more specifically, to the mechanism of registering event listeners via on... attributes or properties in HTML and other web APIs, such as
<button onclick="alert(this)">
orwindow.onload = function() { /* ... */ }
.
See also
- w3.org ONCHANGE-SELECT
- reference.sitepoint.com onchange
来源:https://stackoverflow.com/questions/20874663/jsp-dropdownlist-onchange