Interesting Javascript information
Jun. 26th, 2007 10:37 amNaming your javascript event handler functions after the functions themselves will cause things to not work.
function onunload(e) {
alert('test');
}
window.onunload = onunload;
Name them something like 'onunloadHandler' or the like if you need to name them something. This seems to screw things up in both IE6 and Firefox to different degrees, although IE6 seemed to have more trouble with it.
function onunload(e) {
alert('test');
}
window.onunload = onunload;
Name them something like 'onunloadHandler' or the like if you need to name them something. This seems to screw things up in both IE6 and Firefox to different degrees, although IE6 seemed to have more trouble with it.