derrickorama
Programmer
I'm trying to do something simple that works in Firefox, but apparently not IE. I'm just trying to store the returned value from a function into a variable. I made a simple example for myself to test. It still didn't work, so I was wondering what was wrong, and how to accomplish this task if IE can't comprehend it. Let's pretend that I press a button and it calls the 'alertMe' function.
JavaScript:
function alertMe() {
newval = getValue();
alert(newval);
};
function getValue() {
return 3;
};
Does this just not work in IE??? When I do this in Firefox, it alerts me: "3". In IE it says: "Object doesn't support this property or method". What do I do?
JavaScript:
function alertMe() {
newval = getValue();
alert(newval);
};
function getValue() {
return 3;
};
Does this just not work in IE??? When I do this in Firefox, it alerts me: "3". In IE it says: "Object doesn't support this property or method". What do I do?