Hello, i was wondering if there's a way to place all the javascripts on a separated file and then include it on index <head>. Like this:
<head>
<?php
include("folder/javascripts.php");
?>
</head>
Thanks you.
Hello, i was wondering if there's a way to place all the javascripts on a separated file and then include it on index <head>. Like this:
<head>
<?php
include("folder/javascripts.php");
?>
</head>
Thanks you.
why not just hard code it into your html file?
however yes you can do it the way that you have there if you so please.Code:<script type="text/javascript" href="SCRIPT_NAME.js"></script>
1 other way to look at this all is that you can put each script into a separate file ending with the .js extension, and use the javascripts.php file which you can then determine which of the scripts to include and which are not necessary
Bookmarks