Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<html>
<head>
<script type="text/javascript">
function calc(){    
    var nr=100000;
    var div=parseInt(document.getElementById('st').value);
    var res = div/(nr/div);
    document.getElementById('res').innerHTML = res;
}
</script>
</head>
<body>
<input type="text" id="st">
<input type="button" onclick="calc()" value="klik">
<br />
rezultat: <span id="res">?</span>
</body>
</html>
 
if (document.getElementById('hello')) {
  document.getElementById('hello').innerHTML = 'Hello World - this was inserted using JavaScript';
}
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers