BASIC JS SCRIPT
Code :
<!doctype html>
<html>
<head>
<script type="text/javascript">
function myFunc()
{
document.getElementById("para").innerHTML =
" Hello I am Js ";
}
</script>
<style>
#btn
{
margin-left: 30%;
border: 2px solid maroon;
border-radius: 10px;
background: cyan;
color: green;
height: 30px;
}
#para
{
color: green;
}
</style>
</head>
<body>
<h2>Simpe Js script</h2>
<button type="button" id="btn" onclick="myFunc()">Click Me!
</button><br><br>
<p id="para"></p>
</body>
</html>
Web View :
Come again Learn again !
« iCodeBuzz »
No comments:
Post a Comment