I have a JavaScript function that fills a table:
First include the file in head tag of html , then call the function in script tags under body tags e.g.
Js file function to be called
function tryMe(arg) { document.write(arg); }
HTML FILE
abc
finish