Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

link js file in php

PHP is completely irrelevant for what you are doing. The generated HTML is what counts.

In your case, you are missing the src attribute. Use

 <script type="text/javascript" src="file.js"></script>
 
PREVIOUS NEXT
Tagged: #link #js #file #php
ADD COMMENT
Topic
Name
8+8 =