I'm trying to build a javascript function which executes an existing vb.net function in the current page. I can't find any examples of how to do this, so I'm totally stuck. Could someone please give me some advise on how to accomplish this?
Specifically, I'm trying run a function when the user exits the current webpage, using the preexisting javascript onbeforeunload function.
Thanks.
Code:
<script language="JavaScript">
window.onbeforeunload = BackToHTTP;
function BackToHTTP()
{
[b]RUN VB.NET FUNCTION HERE[/b]
}
</script>
Specifically, I'm trying run a function when the user exits the current webpage, using the preexisting javascript onbeforeunload function.
Thanks.