This might sound stupid, but actually I'm trying to use an external hide.js javascript file inside another myfile.html file. Here are the simple codes:
myfile.html:
<html>
<script src="hide.js" type="text/javascript"></script>
</html>
hide.js:
function fun()
{
document.write("Hello!");
}
I have saved both files in the same folder. The problem is, when I run the myfile.html, it should display "Hello!". But it doesn't display anything. Where's is the problem?
fun()but never actually calls it.