Saved X
Google login
SignUp with Email
X

Javascript function

theindreshverma ( Edited  Oct 01, 12:05 am )
Login

In javascript, we declare a function using function function_name() .....

<button onclick="myFirstJsFunction()">click me</button>
<script>
function myFirstJsFunction() {
    alert('This is javascript function.');
}
</script>

Sourcecode Tags

More Sourcecodes

More Sourcecodes