How do i call a vb subroutine from a javascript function?
in my code i want to verify if the field is filled or not.if its left black a message pops up but if it is filled it should proceed to submit the form or run the background vb subroutine.
here is my code
<script language="javascript">
function validate()
{
if (document.getElementById("txtbox").value == "")
{
alert("it works");
}
else
{
//call a vb routine here
}
return false;
}
</script>
Thank you in advance