JavaScript Lessson 2

JavaScript Output

Lesson 1 Lesson 3


innerHTML() Property:

  • The innerHTML property sets or returns the HTML content (inner HTML) of an element.

write() Method:

  • The write() method writes HTML expressions or JavaScript code to a document.

alert() Method:

  • The alert() method displays an alert box with a specified message and an OK button.