Padrill
06-27-2003, 06:30 AM
Hi all,
I have an external .js file and in it I'm trying to assign a new function (isButton()) to the Input object but I get the error: 'Input is not defined'. Can anyone tell me what I'm doing wrong?
Thanx
PS. I using this code:
Input.prototype.isButton = function () {
return (this.type == "button" || this.type == "submit" || this.type == "reset");
}
I have an external .js file and in it I'm trying to assign a new function (isButton()) to the Input object but I get the error: 'Input is not defined'. Can anyone tell me what I'm doing wrong?
Thanx
PS. I using this code:
Input.prototype.isButton = function () {
return (this.type == "button" || this.type == "submit" || this.type == "reset");
}