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

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -