Question: For the following code, an event handler named investment _ change is var investment _ change = function ( ) { var years = parseInt

For the following code, an event handler named investment_change is
var investment_change = function(){
var years = parseInt( $("years").value );
alert("Years: "+ years);
}
window.onload = function(){
$("investment").onchange = investment_change;
}
For the following code, an event handler named investment_change is
var investment_change = function(){
var years = parseInt( $("years").value );
alert("Years: "+ years);
}
window.onload = function(){
$("investment").onchange = investment_change;
}
attached to the onchange event of the global window object.
attached to the onload event of a control with an id of investment.
attached to the onload event of the global window object.
attached to the onchange event of a control with an id of investment.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!