asp.net - vb program to see the result of the Javascript program without a button click event -


i trying take localhour function , find hour in local computer , send hidden1.

i uncertain how run function "localhour" onblur.

i need vb program see result of javascript program without button click event.

default.aspx

<script type="text/javascript">     function localhour()     {         var localtime = new date();         var hours = localtime.gethours();         document.getelementbyid("<%=hidden1.clientid%>").value = hours;     } </script> <input id="hidden1" type="hidden" onblur="localhour" runat="server" /> 

default.aspx.vb

    utchour = datetime.utcnow.tostring("hh")     localtimezone = cdbl(hidden1.value) - cdbl(utchour) 


Comments

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -