Skip to content

Instantly share code, notes, and snippets.

@mukeshdak
Created February 22, 2020 11:06
Show Gist options
  • Save mukeshdak/482974d4722312f2d4eb4d4ccbd04545 to your computer and use it in GitHub Desktop.
Save mukeshdak/482974d4722312f2d4eb4d4ccbd04545 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/bobufaz
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
#result {
padding:20px;
font-size: 1.5em;
margin:20px;
background-color: bisque;
width:400px;
height: 50px;
}
button{
font-size: 2em;
}
</style>
</head>
<body>
Here is my action and
<button onmouseover="fun1();" onmouseout="fun2();">Press me</button>
<br>
<br>
<br>
Below is my result.
<div id="result">
jade dak
</div>
<script id="jsbin-javascript">
function fun1(){
document.getElementById("result").innerHTML="mouse hatao";
}
function fun2(){
document.getElementById("result").innerHTML="mouse lao";
}
</script>
<script id="jsbin-source-css" type="text/css">#result {
padding:20px;
font-size: 1.5em;
margin:20px;
background-color: bisque;
width:400px;
height: 50px;
}
button{
font-size: 2em;
}</script>
<script id="jsbin-source-javascript" type="text/javascript">function fun1(){
document.getElementById("result").innerHTML="mouse hatao";
}
function fun2(){
document.getElementById("result").innerHTML="mouse lao";
}</script></body>
</html>
#result {
padding:20px;
font-size: 1.5em;
margin:20px;
background-color: bisque;
width:400px;
height: 50px;
}
button{
font-size: 2em;
}
function fun1(){
document.getElementById("result").innerHTML="mouse hatao";
}
function fun2(){
document.getElementById("result").innerHTML="mouse lao";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment