How to use .js file in PHP? I've tried to use "<script language="JavaScript" src="abc.js"></script>" between <head> and </head>, but it doesn't work. Could anybody lend me a hand?
How to use .js file in PHP? I've tried to use "<script language="JavaScript" src="abc.js"></script>" between <head> and </head>, but it doesn't work. Could anybody lend me a hand?
instead of language, try 'type', like this:
<script src="/path/name.js" type="text/javascript"></script>
Thanks. But...nothing happened...:(
for src are you using the full path? And I generally call the type before the src, opposite of the example given.
This topic has been closed to new replies.