I have a javascript that I am trying to add to a page from the WordPress dashboard. I select the page, choose text tab and add my description text and the javascript underneath it. But it will not work. However, I get no errors.
I have tested the page with this simple script and it works
<script type="text/javascript">
var a = 5;
alert("hello world. The value of a is: " + a);
</script>
However, when I punch my script in, it does not work.
If I take my script over to a test website and place my script in between the header tags in the HTML, it works just fine.
What may be some of the reasons why it won't work on my WordPress Page?