Social Icons

Pages

How to remove the default text in textbox when clicked on it

<html><head><title>(Type a title for your page here)</title>

  <script type="text/javascript">
  function make_blank()
  {
  document.form1.type.value ="";
  }
  </script>

  </head>
  <body >

  <form name=form1 method=post action='test.php'>
  <input type=text name=type value='Enter your user id' onClick="make_blank();"></form>

  </body>
  </html>

No comments:

Post a Comment