how to use js function to open a html file code example
Example 1: include script in html
<script type="text/javascript" src="/path/to/script.js"></script>
Example 2: javascript code
function getIntoAnArgument() {
var args = arguments.slice();
args.forEach(function(arg) {
console.log(arg);
});
}