I have written a JavaScript script and saved it as an external file, and now want to call it to validate a form entry (not the whole form) when they finish. I was thinking of using onchange and onblur, but can’t find any way to do this. Am I just being blind?
I have written a JavaScript script and saved it as an external file, and
Share
You would have to include the external script in your HTML page as well. Assuming your external script file is named
my_external.jsand contains a function namedmy_external_function, the following code sample should work: