Triggering Functions

Triggering Functions

<body onLoad="myFunction();">
 <script type="text/javascript">
 function myFunction(){
  alert('Welcome to my site');
 }
 </script>
 <input type="button" value="Click Me" onClick="myFunction();">
</body>
Comments are closed.