Good day
I have been cleaning up my web pages and moving all the various bits of javascript that I have dotted around on various pages to one single external javascript file:
On one of my pages ( I have a js function called "change()", which regulates a popdown list on that page.
For some inexplicable reason, the function works fine when the code is on the page, but not when it is only in the scripts.js file. I'm very puzzled about this. Can anyone help? At the moment top.htm has the function in both the external scripts.js file *and* on the page, which works. But soon as I take the function off the page it doesnt seem to be called anymore.
thanks for help here
jockm
I have been cleaning up my web pages and moving all the various bits of javascript that I have dotted around on various pages to one single external javascript file:
On one of my pages ( I have a js function called "change()", which regulates a popdown list on that page.
For some inexplicable reason, the function works fine when the code is on the page, but not when it is only in the scripts.js file. I'm very puzzled about this. Can anyone help? At the moment top.htm has the function in both the external scripts.js file *and* on the page, which works. But soon as I take the function off the page it doesnt seem to be called anymore.
thanks for help here
jockm