I have one html file that calls external js file. I am presume html file does not reconize
external js file Since firebug throws error of ‘myfunction() is not defined’.
Here is my code in external js file.
function a(){
//just function
}
and here is html file that makes trouble.
<script type="javascript/text" src="./myjs.js"></script>
<script>
a();
</script>
can anybody tell me why I can’t implement this simplest js file? when I run html file on
python simpleHTTPServer, it even does not threw 404 error.
I am not sure what am I doing wrong here.
It works for me. There must be something wrong with your path or your JS-File!