Hello Fourm!
I have a question for ya. Is it possible to redefine a function in Javascript? For example:
Thanks!
I have a question for ya. Is it possible to redefine a function in Javascript? For example:
Code:
function myTest(){
this.showAlert = function(){
alert('Show Me!')
}
this.callAlert = function(){
this.showAlert();
}
}
test = new myTest;
test.showAlert = function(){ alert('No! Show Me Instead')}
test.callAlert;
Thanks!