Hi I am trying to call the namespace JavaScript which is given in the internal JavaScript in below HTML representation.
<head>
    <script type="text/javascript">
        var ns = {
            sampleAlert : function() {
                ns.message(var );
            }
            message :function(var ) {
                alert('msg');
            }
        }
    </script>
</head>
<body>
    <!--how to call the function sampleAlert-->
</body>
Is that possible? I am not able to call that namespace JavaScript function in the body.
 
     
     
    