I have this below script: in Firefox, it works fine but in IE, i saw an alert box and then I saw an error that says: “not implemented”
do you have any idea? or am I doing something wrong here
That calls the testAlert() method, and returns the result, assigning it to the onload property. The result is undefined, and assigning undefined to an event handler property is kinda pointless, which is probably why IE complains.
You probably want to assign the function itself as the event handler, not execute the function and assign the function return value.