Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
<!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
  article, aside, figure, footer, header, hgroup, 
  menu, nav, section { display: block; }
</style>
</head>
  
<body>
  <?php print_r($_POST); ?>
  <form method="post" action="">
  <input type="submit" value="Click" onclick="foo()" /> <input type="hidden" id="htmlCodes" style="width:500px" value="<?php echo '<b>bold</b>'; ?>" />
  </form>
</body>
</html>
 
function foo() {
  document.getElementById("htmlCodes").value += "<b>"+Math.ceil(Math.random()*5)+"</b>";
  return false;
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers