yof3f
04-27-2003, 10:24 AM
oK! well im new here, but i've looked at the tutorial about adding more than one javascript to a page.
i understand the common problem, of there being
SCRIPT 1: window.onload=dothis
SCRIPT 2: window.onload=dothat
therefore not showing both scripts.
RESOLUTION is: <body onload="dothis();dothat()">
but what if the problem is this:
SCRIPT 1: window.onload=dothis
SCRIPT 2: if (opera || ie || dom) window.onload = dothat
what would the resolution be? it would be greatly appreciated if someone could help :)
i understand the common problem, of there being
SCRIPT 1: window.onload=dothis
SCRIPT 2: window.onload=dothat
therefore not showing both scripts.
RESOLUTION is: <body onload="dothis();dothat()">
but what if the problem is this:
SCRIPT 1: window.onload=dothis
SCRIPT 2: if (opera || ie || dom) window.onload = dothat
what would the resolution be? it would be greatly appreciated if someone could help :)