I have a JavaScript file contains various string functions. It is a separate .js file. I also have a .css file that defines the styles of Input Boxes. Some styles are executed on certain events like: focus etc.
I want to call the string functions in the .js file on Input Box events. I want to know:
(1) Whether to call the functions from within CSS file, since that file is also handling styles for certain events?
(2) If I use in-line, how to access the function that resides in the .js file?