JavaScript Hive Let's understand basics of JavaScript

Searching HTML DOM Elements 0

Searching HTML DOM Elements

In JavaScript we can get any DOM elements of the HTML page by searching the elements DOM using the some inbuilt methods. JavaScript provides the several methods like getElementById(), getElementsByClassName(). document.getElementById() It is the...

document.write() 0

Using document.write()

The document.write() method will directly write into the page. It gives the output string directly into the page. document.write() method is the fastest method to gives the output because it does not change the...