Multiple scripts on same HTML page
- From: "Daniel Kaplan" <NoSPam@xxxxxxxxxx>
- Date: Fri, 4 Jul 2008 11:49:39 -0400
I know I can have multiple scripts on one HTML page (at least I think I know
I can).
i.e.
<script language="Javascript" type="text/javascript"
src="../js/mainbutts.js"></script>
...html code...
...html code...
<script language="Javascript" type="text/javascript"
src="../js/extrabutts.js"></script>
But the function names within each script, must they be unique? In other
words both scripts have a function called "rollOver". Can that conflict?
Should I rename them unique?
Of course one might think, "Why doesn't this idiot try and see, rather than
bother to ask?" But in my multiple decades of programming I've only learned
one solid lesson: Just because it works one way, doesn't mean it's the
right way to do it!
Thanks ahead, as always.
.
- Follow-Ups:
- Re: Multiple scripts on same HTML page
- From: Martin Honnen
- Re: Multiple scripts on same HTML page
- Prev by Date: Re: createElement not work
- Next by Date: Re: Javascript Slideshow + MS Acess
- Previous by thread: createElement not work
- Next by thread: Re: Multiple scripts on same HTML page
- Index(es):