Javascript

Simpliest code:


<h2>Is this javascript?</h2>

<button type="button"
onclick="document.getElementById('demo').innerHTML = Date()">
Click me to display Date and Time.</button>

<p id="demo"></p>

Is this javascript?


0 коммент.