View Full Version : two or more scripts to work concurrently on one page

04-28-2004, 09:04 PM
I'm having trouble getting two or more scripts to work concurrently on one page. By themselves, each function just fine, but when put together, they throw a tantrum. Help!

I tried to write the two onload sections as one but that still did not work.


04-28-2004, 09:13 PM
Welcome to CF.

It's most likely variables/functions conflicting if not two event handler attributes as you already mentioned. The code you're working with or even better a link to the page in question would be helpful.

04-30-2004, 05:05 PM
I agree with fredmv, some examples of your code would be helpful.

I know you said you already tried writing them as one line but try this again and see how it works.

(this is if you're using them in the BODY tag)

<BODY onload="function1();function2();">

That should work!


Philip M
04-30-2004, 07:38 PM
This question is frequently asked, and there is a most lucid explanation and tutorial to be found at