New Zenner
- Join Date:
- May 2007
- Posts:
- 2
- Plugin Contributions:
- 0
on_loaded javascript not calling other funtions
I have this:
/includes/modules/pages/index/on_load_assign.js
with this:
first_assign();
```and I have this:
/includes/modules/pages/index/jscript_assign.js
with this:
function first_assign() {
alert('assignments called');
}
<script type="text/javascript" src="includes/modules/pages/index/jscript_assign.js"></script>
</head>
<body id="indexBody" onload="first_assign();">
```If I'm reading it right, when my page loads an alert box should pop up that reads "assignments called". But it's not doing that. Any ideas why?
When I change on_load_assign.js to a simple alert function it works fine, but it doesn't seem to be able to call the outside function.