Monday 7 January 2013

how to calling a button using javascript

how to calling a button

                            how to calling a button using onclick method.


sample program:


<html>
<head>
<script>
  function controls()
  {
  alert("control");
  }

</script>
</head>
<body>
<button  name="button"  onclick="controls();">click</button>
</body>
</html>

No comments:

Post a Comment