K
K Viltersten
I declared a function in a file called somefile.js as follows:
function foo() {
alert ("yippi!"); }
In HTML-file i'm importing it by adding:
onClick='foo()'
The somefile.js is imported correctly (according to my breakpoints in
FireBug SOME code in the file is reached). Despite of that, as i cause the
onClick-event to fire, i get the error message: "Function is not defined".
How can i debug it? As far i can see, it should work.
function foo() {
alert ("yippi!"); }
In HTML-file i'm importing it by adding:
onClick='foo()'
The somefile.js is imported correctly (according to my breakpoints in
FireBug SOME code in the file is reached). Despite of that, as i cause the
onClick-event to fire, i get the error message: "Function is not defined".
How can i debug it? As far i can see, it should work.