Sunday, 14 July 2013

PHP program to call a JavaScript procedure and a VBScript procedure using VBScript in ASP

<!DOCTYPE html>
<html>
<head>
<%
sub vbproc(num1,num2)
Response.Write(num1*num2)
end sub
%>

<script  language="javascript" runat="server">
function jsproc(num1,num2)
{
Response.Write(num1*num2)
}
</script>

</head>

<body>
<p>Result: <%call vbproc(3,4)%></p>
<p>Result: <%call jsproc(3,4)%></p>
</body>

</html>




OUTPUT 




Result: 12
Result: 12

0 comments:

Post a Comment