Created
June 20, 2020 07:21
-
-
Save mitm786/cdf204036bf91a3df7265c73335656af to your computer and use it in GitHub Desktop.
How to Pass Parameter in JavaScript Function From Html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>WWithhout parameters function javascript</title> | |
</head> | |
<body> | |
<h3 id="ageshow"></h3> | |
<button onclick="myfunctionName()">Click</button> | |
<script type="text/javascript"> | |
function myfunctionName( ){ | |
document.getElementById("ageshow").innerHTML += 'Hello This is my Function output'; | |
} | |
</script> | |
</body> | |
</html> | |
Lear more main of the that points that <a href="https://wlearnsmart.com/how-to-pass-parameter-in-javascript-function-from-html/">How to Pass Parameter in JavaScript Function From Html</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment