Posts

Showing posts with the label Javascript

JavaScript

Image
  What is JavaScript and Why it is Used? JavaScript is a programming language . Used both on the client-side and server-side that allows you to make web pages interactive. Where HTML and CSS are language that give structure and style to web pages,JavaScript gives web pages ,JavaScript gives web pages interactive elements that engage a user. J avaScript can change HTML content one of many JavaScript HTML methods is getElenentById( ). the example below “finds” an HTML elements(with id=”demo” and change the elements content (innerHTML) to “Hello JavaScript”.   < !DOCTYPE html > < html > < p id ="demo" > JavaScript can change HTML content. < /p > < button type ="button" onclick ="document.getElementById("demo"),innerHTML="Hello Javascript!" > Click me < /button > < /body > < /html >   The < script > tag...