V
VA
I am using a JS library of functions that I include in my web page
using the usual
<script type="text/javascript" src=...>
method
Is there a way to automatically call one of my own functions when
function foo(...) (from the library) is called?
In other words, when foo() is executed, check to see if there is an
"execute me also" type of function (associated with foo) defined and if
so, execute that BEFORE foo() starts execution?
Ideally, I would like to do this without modifying the source code for
the function foo.
Hope I am making sense.
Thanks for any help.
using the usual
<script type="text/javascript" src=...>
method
Is there a way to automatically call one of my own functions when
function foo(...) (from the library) is called?
In other words, when foo() is executed, check to see if there is an
"execute me also" type of function (associated with foo) defined and if
so, execute that BEFORE foo() starts execution?
Ideally, I would like to do this without modifying the source code for
the function foo.
Hope I am making sense.
Thanks for any help.