OldFunc = window.onload;
window.onload = OnLoad;
function OnLoad() {
try {
OnFixFontAndTable();
OldFunc();
} catch (e) {
alert(e);
}
}
function OnFixFontAndTable() {
$('.something some').css({
'behavior': 'url(/path/border-radius.htc)'
});
}
I am using border-radius.htc to fix the the issue with previous version of IEs,
but the alert(e) is always called as "TypeError:Object expected".
try using
defer="defer"in yourscripttag like this