I have a js file.
File Name: propoties.js
function simple()
{
alert("simple");
var text = "Control";
}
These is my html code. What i want is alert that text variable in html.
<html>
<script type='text/javascript' src='path/propoties.js'></script>
<script>
simple();
alert(text); /* It is not working */
</script>
</html>
Please help me these. Thank you.