What is JavaScript?
JavaScript is a programming language used to display dynamic HTML and CSS in Webbrowsers
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<html lang="en"> <head> <script> function changeColor(){ document.getElementById('headline').style.color = 'red'; } </script> </head> <body> <h1 id="headline">JavasScript Example</h1> <button type="button" onclick="changeColor();">Click me</button> </body> </html> |