Skip to content

Instantly share code, notes, and snippets.

@amark
Last active July 10, 2021 08:59
Show Gist options
  • Save amark/067e80f8f247246de18815e9f8be2f42 to your computer and use it in GitHub Desktop.
Save amark/067e80f8f247246de18815e9f8be2f42 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<div id="a">a</div>
<div id="b">b</div>
<div id="c">c</div>
<div id="d">d</div>3
<input id='z' value="no">
<script type="text/javascript">
document.getElementById('z').value = 'yes2';
function lol(){
document.getElementById('a').innerHTML = 'hi';
Object.for = "wow";
document.getElementById('b').innerHTML = Object.for;
};
lol();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment