JavaScript guide


  Translation results:

What knowledge must a website developer have?

HTML and CSS

Client script - JavaScript and the DOM

Server script - ASP, PHP

XML and SQL< /p>

JavaScript guidesyntax

JavaScript is the scripting language of the web!

JavaScript is used by millions of web pages to improve design, validate forms, detect browsers, create cookies, and more.

JavaScript guideexample

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>php Chinese website (php.cn)</title>
<script>
function displayDate(){
document.getElementById("demo").innerHTML=Date();
}
</script>
</head>
<body>

<h1>My first JavaScript program</h1>
<p id="demo">This is a paragraph</p>

<button type="button" onclick="displayDate()">Display Date</button>

</body>
</html>

Run Instance»

Click "Run Instance" " button to view online examples

Popular Recommendations

Home

Videos

Q&A