Skip to content

Instantly share code, notes, and snippets.

@mitm786
Created June 20, 2020 07:21
Show Gist options
  • Save mitm786/cdf204036bf91a3df7265c73335656af to your computer and use it in GitHub Desktop.
Save mitm786/cdf204036bf91a3df7265c73335656af to your computer and use it in GitHub Desktop.
How to Pass Parameter in JavaScript Function From Html
<!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