User:Syko/Sandbox

From Jedi Knight Wiki | JKHub
Revision as of 21:17, 27 October 2014 by Syko (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Messing around with scripts

<!DOCTYPE html> <html> <body>

My First JavaScript

JavaScript can change the content of an HTML element:

<button type="button" onclick="myFunction()">Click Me!</button>

This is a demonstration.

<script> function myFunction() {

   document.getElementById("demo").innerHTML = "Hello JavaScript!";

} </script>

</body> </html>