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>
</head>
<body>
  <pre id="error_display"></pre>
  
  <button onclick="test()">Press</button>
  
</body>
</html>
 
#error_display {
  border: 1px solid red;
  border-radius: 2px;
  background: rgba(255, 50, 50, 0.02);
  padding: 5px;
  color: rgb(200, 0, 0);
  position: fixed;
  right: 5px;
  top: 5px;
  width: 460px;
  overflow: auto;
  display: none;
}
 
var error_display = document.querySelector("#error_display");
window.onerror = function myErrorHandler(errorMsg, url, lineNumber) {
  error_display.style.display = "block";
  error_display.innerText += "message: '" + errorMsg + "'\t\n url: '" + url + ":" + lineNumber + "';\n\n"; 
  return true;
};
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers