Anonymous user
Simple windowed application: Difference between revisions
→{{header|JavaScript}}
(Added Wren) |
|||
Line 1,811:
}</lang>
<html>
<head>
<title>Simple Window Application</title>
</head>
<body>
<br>        
var clicks: Integer;▼
<script type="text/javascript">
var box = document.createElement('input')
content: [▼
box.style.position = 'absolute';
box.style.left = '10px';
box.style.top = '60px';
document.body.appendChild(box).style.border="3px solid white";
document.body.appendChild(box).value = "There have been no clicks yet";
document.body.appendChild(box).style['width'] = '220px';
function count_clicks()
document.body.appendChild(box).remove()
document.getElementById("clicks").innerHTML = clicks;
</script>
<button type="button" onclick="count_clicks()"> Click me</button>
<pre><p> Clicks: <a id="clicks">0</a> </p></pre>
</body>
</html>
=={{header|Julia}}==
|