Executing Javascript on one page
-
I have an alert function in an updatepage.js file:
function hello() {alert ('Hello world!');}
On my post page (set to ‘text’ view) I have<script type="text/javascript" src="/updatepage.js" </script> <script type="text/javascript"> <!-- hello(); --></script>
When I refresh the page, I don’t get the alert.
I’m working up to having the alert message show with every WordPress heartbeat, but one step at a time.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Executing Javascript on one page’ is closed to new replies.