HTML file :
<HTML>
<HEAD>
<Title>Testing</Title>
</HEAD>
<Body>
<script src="Test.js" language="JavaScript" type="Text/JavaScript" >
CreateVariables();
document.write(glVarMsg3);
</script>
</Body>
</HTML>
.js file:
function CreateVariables()
glVarMsg3="Global variable";
Friends please inform me what is the issue in this script? why i can't be able to access variable from .js file?