For even a simple block of inline JavaScript in an HTML page, such as:
<script type="text/javascript">
var Hi= "Hi";
function SayHi ()
{
alert(Hi);
}
</script>
any browser that I test this code in (Chrome, IE, Mozilla etc) fails to execute this code. I can only assume that something must have been disabled for Javascript not to run, however I am completely clueless as to the cause of this problem.
Any suggestions would be greatly appreciated.
You’ve defined the function and the variable to alert but you have not called the function.