Forums

This topic is locked

Multiple javascripts on the same page

Posted 24 Jan 2006 21:25:34
1
has voted
24 Jan 2006 21:25:34 J McClendon posted:
Hi!

I have two javascripts. One is a manual scroller using a button and the other is an automatic scroller. I trined using <body "onload dothisone(); dothatone()"> but I get an error saying that the first one is un defined. If I still run the script in HTML kit it works. If I preview in the browser I don't even see the automatic scroller. Is there anyone here who can guide me?

Tia (Thanks in Advance)

Edited by - novella on 25 Jan 2006 03:28:14

Replies

Replied 03 Oct 2009 20:52:56
03 Oct 2009 20:52:56 satheesh Dominic replied:
The HTML code provided is incorrect.
It should be like: <body onload="dothisone();dothatone();">
Remember, you should have defined the 2 functions [dothisone()& dothatone()] before the body tag. If you are using external Javascript files with these functions defined in it, then link it before the body tag..

Reply to this topic