RE: Is there a way to include (in PHP) with javascript?
<script src="[uri-to-javascript-file]" />
Like, say you have some javascript in a file called MyJava.js
then you write
<script src="MyJava.js" language="javascript" type="text/javascript" />
And when the browser arrives at this line, it will parse the content of the javascript file refered to.
(Edit: added language/type attributes)
This post was edited on 05-27-2004 at 08:41 PM by lhunath.
{ - - }
|