For the site I'm developing I'm using DreamWeaver templates with PHP.
I have a javascript that I only want to run on the first page. I didn't write the script, got it offline, so I don't know the interworkings of it.
In the setup directions, it said it needed the onload="startclock ()" attribute in the <body> tag.
I also have a jscript file that is included in index page which hold the code for the countdown timer.
My problem is every page has to have the onload="startclock ()" attribute because it is in the template and can't be added else where. Since not all the page have the jscript included it gives an error.
Is there a way to have the script work without having to have the onload="startclock ()" attribute in the <body> tage?
Thanks,
LK