if I have a FormSubmit(this) java script function, could I have another one called FormSubmit but taking 3 parameters. Can jave script function be overwritten?
But what you can do is to test for the existance of the arguments. This way, you could call a three-parameter function with fewer arguments and test whether the parameters were passed or not. For example, let's say we define function xyz as:
You can call this function using any number of parameters. E.g.:
Any call you make with "missing" arguments will cause the corresponding parameters to evaluate as null. Not as clean as overloading, but at least you can get the desired effect. hth, bear
Post by:autobot
A timing clock, fuse wire, high explosives and a tiny ad:
a bit of art, as a gift, the permaculture playing cards