JS is JavaScript, scripting language
I will learn some of the following aspects of learning
Document.writer ("
<button type = "button" onclick = "alert (' welcome! ')" > Click here </button>;
Alert () can be used for code testing and debugging
<! DOCTYPE html>
<body>
<p id= "Demo" >
JavaScript can change the content of HTML elements.
</p>
<script>
function myFunction ()
{
X=document.getelementbyid ("demo"); Find element
X.innerhtml= "Hello javascript!"; Change Content
}
</script>
<button type= "button" onclick= "myFunction ()" > click here </button>
</body>
document.getElementById ("some id") is a method defined in the HTML DOM
The DOM is the Document Object model and is the official standard for accessing HTML elements.
- changing HTML images
- Change HTML style
- Validate input
- such as
Tip: JavaScript and Java are two completely different languages, both conceptually and in design.
Java (invented by Sun) is a more complex programming language.
ECMA-262 is the official name of the JavaScript standard.
JavaScript was invented by Brendan Eich. It appeared in Netscape in 1995 (the browser has stopped updating) and was adopted by the ECMA (a standard association) in 1997.
JS Getting Started