01 Run Javascript in WordPress


My First JavaScript

source code

<h1>My First JavaScript</h1>

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

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

Leave a Reply