Skip to content

Instantly share code, notes, and snippets.

<h1 id = "h1Id">Title</h1>
<p id = "pId">Paragraph</p>
<input id = "inputId">
<button onclick="aButton()">Button</button>
<script id="jsbin-javascript">
//alert("pop");
function aButton(){
var clickAButton = document.getElementById("inputId").value;
document.getElementById("pId").innerHTML = clickAButton;
}
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.0.3.js"></script>
</head>
<body>
<!-- <h1>Header 1</h1>
<h2>Header 2</h2>
<button>Button</button> -->
<style id="jsbin-css">
var aCanvas = document.getElementById("aCanvas");
var context = aCanvas.getContext("2d");
context.fillStyle="red";
context.fillRect(10,10,100,100);
</style>
<svg>