SyntaxFix
Write A Post
Hire A Developer
Questions
You can also put the JavaScript code in script tags, rather than a separate function. <script>//JS Code</script> This way the code will get executes on Page Load.
<script>//JS Code</script>