How can I access JavaScript defined in <head> from <body>
For example suppose I have

    function myTest() {
    	return "test";
    }

defined in <head>

In body if I try to call myTest() it fails. How can I make functions and variables accessible from body?
How can I access JavaScript defined in <head> from <body>
===

For example suppose I have

    function myTest() {
    	return "test";
    }

defined in <head>

In body if I try to call myTest() it fails. How can I make functions and variables accessible from body?