add .js file as source in html file from server
        Posted  
        
            by 
                zeeshan
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by zeeshan
        
        
        
        Published on 2012-04-01T04:17:50Z
        Indexed on 
            2012/04/01
            5:29 UTC
        
        
        Read the original article
        Hit count: 203
        
I have an HTML file on my server, and a Javascript file on the same server. I want it so that when I load the HTML file, it will the reference of .js file placed on the server.
I tried this way:
<html>
    <head>
        <script type="text/javascript src="...server side path...."></script>
    </head>
</html>
but it is not working. Can any one tell me how I can do this?
© Stack Overflow or respective owner