Hi,
You can call the script function from HTML web resource.
In HTML page do refer to the script file location in Script tag.
Refer below code:
<!DOCTYPE html>
<html>
<head>
<title>Allocate LED for Match</title>
<meta charset="utf-8" />
</head>
<body>
<script type="text/javascript" src="../WebResources/pro_TestServices.js"></script>
</body>
</html>
And in Script file write script function code:
Refer code below:
// pro_TestServices.js
function Testfunction()
{ alert("test function");
}
On button click in HTML web resource, you can call the function from TestServices.js script file.