Program code – Login Form to Expire in 5 seconds.

In the program code written in Simple HTML(Hyper Text Markup Language) & JavaScript. The Login form will disable with in 5 seconds. The program code save .aspx extension . That program run at asp server.

<html>
 <head runat="Server">
  <title></title>
  <script type="text/javascript">
      function HideLable()
           {
              document.getElementById("message").innerHTML="Login Form Expried";
             }
            setTimeout("HideLable();",5000); // 5000 means 5 seconds.
    </script>
 </head>
  <body>
    <form id="form1" runat="Server">
      <div id="message"> This Login form will expired in 5 seconds.<br>
        <Lable> Username</Lable>
        <input type="text"></input>
        <Lable>Password</Lable>
        <input type="text"></input>
        <asp:LinkButton Text="Submit" runat="server" />
      </div>
    </form>
  </body>
</html>

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.