Jun. 26th, 2007

jcfiala: (Default)
Naming 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.

October 2020

S M T W T F S
    123
45678910
11121314151617
18192021222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 18th, 2025 07:53 pm
Powered by Dreamwidth Studios