ASP (Active Server Pages) is a powerful tool for generating dynamic, interactive web pages.

ASP subroutine syntax

In ASP, you can call JavaScript subroutines through VBScript and vice versa.

ASP subroutine example

<!DOCTYPE html>
<html>
<head>
<%
sub vbproc(num1,num2)
response.write(num1*num2)
end sub
%>
</head>
<body>
<p>Result: <%call vbproc(3,4)%></p>
</body>
</html>